mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
27 lines
440 B
Bash
Executable File
27 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
|