PREUN
/bin/sh
if [ $1 -eq 0 ]; then
/bin/systemctl --no-reload disable bluetooth.service >/dev/null 2>&1 || :
/bin/systemctl stop bluetooth.service >/dev/null 2>&1 || :
fi
POSTIN
/bin/sh
if [ $1 -eq 1 ]; then
/bin/systemctl enable bluetooth.service >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart bluetooth.service >/dev/null 2>&1 || :
fi
Triggers
bluez <
4.87-7
/bin/sh
/bin/systemctl --no-reload enable bluetooth.service >/dev/null 2>&1 || :