diff options
Diffstat (limited to 'applications/luci-meshwizard')
-rw-r--r-- | applications/luci-meshwizard/ipkg/postinst | 6 | ||||
-rw-r--r-- | applications/luci-meshwizard/root/etc/uci-defaults/meshwizard | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/applications/luci-meshwizard/ipkg/postinst b/applications/luci-meshwizard/ipkg/postinst index ac4e1d1222..0599082efe 100644 --- a/applications/luci-meshwizard/ipkg/postinst +++ b/applications/luci-meshwizard/ipkg/postinst @@ -1,8 +1,4 @@ #!/bin/sh [ -n "${IPKG_INSTROOT}" ] || { - uci set ucitrack.meshwizard="meshwizard" - uci set ucitrack.meshwizard.exec="/etc/init.d/wizard restart" - uci commit - exit 0 + ( . /etc/uci-defaults/meshwizard ) && rm -f /etc/uci-defaults/meshwizard } - diff --git a/applications/luci-meshwizard/root/etc/uci-defaults/meshwizard b/applications/luci-meshwizard/root/etc/uci-defaults/meshwizard new file mode 100644 index 0000000000..2154e9771d --- /dev/null +++ b/applications/luci-meshwizard/root/etc/uci-defaults/meshwizard @@ -0,0 +1,6 @@ +#!/bin/sh +uci batch <<EOF +set ucitrack.meshwizard="meshwizard" +set ucitrack.meshwizard.exec="/etc/init.d/wizard boot" +commit ucitrack +EOF |