Add widget config from community profile to meshwizard
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / restore_default_config.sh
1 #!/bin/sh
2 # This will restore default "factory" settings before running the meshwizard
3 # and is used when cleanup=1
4 # Warning: This will reset network settings for wan and lan to defaults too.
5
6 echo "+ Restore default config as requested with cleanup=1"
7 cp -f /rom/etc/config/* /etc/config/
8 rm /etc/config/wireless
9 wifi detect > /etc/config/wireless
10 rm /etc/config/network
11 /etc/init.d/defconfig start