diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-28 07:34:48 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-28 07:34:48 (GMT) |
commit | ed63eead7302d38aa5a632b4e4b94a03f9a20202 (patch) | |
tree | 72d23893889630551800ed723c7182141924b701 /abs/extra-testing/crda/crda.rc | |
parent | 5d22477377dff808644fffa9566134a427db2772 (diff) | |
download | linhes_pkgbuild-ed63eead7302d38aa5a632b4e4b94a03f9a20202.zip linhes_pkgbuild-ed63eead7302d38aa5a632b4e4b94a03f9a20202.tar.gz linhes_pkgbuild-ed63eead7302d38aa5a632b4e4b94a03f9a20202.tar.bz2 |
crda and needed deps for those that need to set wireless country code.
Diffstat (limited to 'abs/extra-testing/crda/crda.rc')
-rwxr-xr-x | abs/extra-testing/crda/crda.rc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/extra-testing/crda/crda.rc b/abs/extra-testing/crda/crda.rc new file mode 100755 index 0000000..13dbd87 --- /dev/null +++ b/abs/extra-testing/crda/crda.rc @@ -0,0 +1,26 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/wireless-regdom + +case "$1" in + start) + if [ -n "${WIRELESS_REGDOM}" ]; then + stat_busy "Setting wireless regulatory domain: ${WIRELESS_REGDOM}" + if iw reg set ${WIRELESS_REGDOM}; then + stat_done + else + stat_fail + fi + fi + ;; + stop) + ;; + restart) + $0 start + ;; + *) + echo "usage: $0 start" +esac +exit 0 |