mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
26 lines
440 B
Bash
Executable file
26 lines
440 B
Bash
Executable file
#!/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
|