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