diff options
author | root <root@rshg054.dnsready.net> | 2012-08-22 00:02:51 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-22 00:02:51 +0000 |
commit | 297a042ac9a7bbd2b18a9551f5fa4fe43faf53b2 (patch) | |
tree | 75290bf7727659568bf50c0446db690d4888d908 /core/rfkill/rc.d | |
parent | a3669c04838b48b6891b2ffc4b296fa515f8174f (diff) |
Wed Aug 22 00:02:51 UTC 2012
Diffstat (limited to 'core/rfkill/rc.d')
-rwxr-xr-x | core/rfkill/rc.d | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/core/rfkill/rc.d b/core/rfkill/rc.d new file mode 100755 index 000000000..ce90ee150 --- /dev/null +++ b/core/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 |