summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/crda/crda.rc
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-01-28 07:34:48 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-01-28 07:34:48 (GMT)
commited63eead7302d38aa5a632b4e4b94a03f9a20202 (patch)
tree72d23893889630551800ed723c7182141924b701 /abs/extra-testing/crda/crda.rc
parent5d22477377dff808644fffa9566134a427db2772 (diff)
downloadlinhes_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-xabs/extra-testing/crda/crda.rc26
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