mirror of https://github.com/OpenIPC/firmware.git
wifibroadcast-ng: add reset command
parent
c8d8fb47dc
commit
5c61f37719
|
@ -2,7 +2,6 @@ wireless:
|
||||||
txpower: 1
|
txpower: 1
|
||||||
channel: 161
|
channel: 161
|
||||||
mode: HT20
|
mode: HT20
|
||||||
region: 00
|
|
||||||
broadcast:
|
broadcast:
|
||||||
wfb_index: 1
|
wfb_index: 1
|
||||||
tun_index: 1
|
tun_index: 1
|
||||||
|
|
|
@ -56,7 +56,7 @@ load_modules() {
|
||||||
load_interface() {
|
load_interface() {
|
||||||
iw "$wfb_dev" set monitor none
|
iw "$wfb_dev" set monitor none
|
||||||
iw "$wfb_dev" set channel "$channel" "$mode"
|
iw "$wfb_dev" set channel "$channel" "$mode"
|
||||||
iw reg set "$region"
|
iw reg set 00
|
||||||
|
|
||||||
if [ "$driver" = "88XXau" ]; then
|
if [ "$driver" = "88XXau" ]; then
|
||||||
iw "$wfb_dev" set txpower fixed $((txpower * -100))
|
iw "$wfb_dev" set txpower fixed $((txpower * -100))
|
||||||
|
@ -154,8 +154,14 @@ case "$1" in
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
reset)
|
||||||
|
cp -f /rom/etc/majestic.yaml /etc/majestic.yaml
|
||||||
|
cp -f /rom/etc/wfb.yaml /etc/wfb.yaml
|
||||||
|
rm -f /etc/system.ok
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|restart|reload}"
|
echo "Usage: $0 {start|stop|restart|reload|reset}"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue