summaryrefslogtreecommitdiffstats
path: root/abs/extra/crda/crda.rc
blob: 13dbd870e8c5a05061629baca00c9a0b0e350170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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