1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Set default wifi settings

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-23 09:52:32 +02:00
parent d0e3a051f0
commit a09f7ab847

View file

@ -0,0 +1,19 @@
#!/bin/sh
if [ "$(uci -q get wireless.radio0)" != "" ];
if [ "$(uci -q get wireless.radio0.country)" = "" ]; then
uci -q batch <<-EOF >/dev/null
set wireless.radio0.country='00'
set wireless.default_radio0.skip_inactivity_poll='1'
commit wireless
EOF
fi
if [ "$(uci -q get wireless.default_radio0.network)" = "lan" ]; then
uci -q batch <<-EOF >/dev/null
set wireless.default_radio0.network='wifi'
commit wireless
EOF
fi
fi
exit 0