Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > ed35c99fa4636839846eec47eb63f23c > scriptlet

bluez-4.71-5.fc14.x86_64.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