contrib/meshwizard: fix interaction with uci in OpenWrt CC, see https://dev.openwrt.org/ticket/19539

This commit is contained in:
Manuel Munz 2015-05-30 16:56:18 +02:00
parent 8005ecb2b9
commit 7c7bad55d4

View file

@ -1,11 +0,0 @@
#!/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