blob: 1c88f198d8e8cb37fae0f0bbf0f06456e6c8b8d1 (
plain) (
tree)
|
|
#!/bin/sh
. "${PM_FUNCTIONS}"
case "$1" in
hibernate|suspend)
if [ -d /sys/devices/virtual/misc/rfkill -a -x /usr/sbin/rfkill -a -x /etc/rc.d/rc.bluetooth ]; then
rfkill block bluetooth
fi
;;
thaw|resume)
if [ -d /sys/devices/virtual/misc/rfkill -a -x /usr/sbin/rfkill -a -x /etc/rc.d/rc.bluetooth ]; then
rfkill unblock bluetooth
fi
;;
*)
;;
esac
|