diff options
author | root <root@rshg054.dnsready.net> | 2011-11-05 23:14:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-05 23:14:55 +0000 |
commit | 82fd7f658509afe9737e14e8d1ee9fefe13c9d1f (patch) | |
tree | 9c41c06e2e0b0ef270dc8eec367171163497f622 /testing/rfkill/rfkill.rc.d | |
parent | 3026bb55941e3b04b56f5fb41b88941c6c2ce0cd (diff) |
Sat Nov 5 23:14:55 UTC 2011
Diffstat (limited to 'testing/rfkill/rfkill.rc.d')
-rwxr-xr-x | testing/rfkill/rfkill.rc.d | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/rfkill/rfkill.rc.d b/testing/rfkill/rfkill.rc.d new file mode 100755 index 000000000..ce90ee150 --- /dev/null +++ b/testing/rfkill/rfkill.rc.d @@ -0,0 +1,38 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/rfkill + +case "$1" in + start) + for device in ${RFKILL_BLOCK}; do + stat_busy "Blocking rfkill device: ${device}" + /usr/sbin/rfkill block ${device} + if [ $? -eq 0 ]; then + stat_done + else + stat_fail + fi + done + for device in ${RFKILL_UNBLOCK}; do + stat_busy "Unblocking rfkill device: ${device}" + /usr/sbin/rfkill unblock ${device} + if [ $? -eq 0 ]; then + stat_done + else + stat_fail + fi + done + ;; + stop) + ;; + restart) + $0 start + ;; + *) + echo "usage: $0 {start}" + exit 1 + ;; +esac +exit 0 |