Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 50aeb26f50a85eafa3884b2ec94b4323 > scriptlet

bluez-4.71-5.fc14.i686.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
        /sbin/service bluetooth stop >/dev/null 2>&1 || :
        /sbin/chkconfig --del bluetooth
        /bin/systemctl disable bluetooth.service >/dev/null 2>&1 || :
        /bin/systemctl stop bluetooth.service >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
/sbin/chkconfig --add bluetooth
if [ $1 -eq 1 ]; then
        /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
exit 0

POSTUN

/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
        /sbin/service bluetooth condrestart >/dev/null 2>&1 || :
fi

Triggers

bluez < 4.71-2

/bin/sh
if /sbin/chkconfig bluetooth ; then
        /bin/systemctl enable bluetooth.service >/dev/null 2>&1 || :
fi