mirror of https://github.com/openwrt/luci.git
contrib/meshwizard: add helpers/restore_default_config.sh
parent
712620451c
commit
871091ee20
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# This will restore default "factory" settings before running the meshwizard
|
||||||
|
# and is used when cleanup=1
|
||||||
|
# Warning: This will reset network settings for wan and lan to defaults too.
|
||||||
|
|
||||||
|
echo "+ Restore default config as requested with cleanup=1"
|
||||||
|
cp -f /rom/etc/config/* /etc/config/
|
||||||
|
rm /etc/config/wireless
|
||||||
|
wifi detect > /etc/config/wireless
|
||||||
|
rm /etc/config/network
|
||||||
|
/etc/init.d/defconfig start
|
Loading…
Reference in New Issue