contrib/meshwizard: set ucitrack entry properly
[project/luci.git] / applications / luci-meshwizard / ipkg / postinst
index ac4e1d122258763e6ae86442d0e972d84be56d77..0599082efef372b55c3c5ed1ffef390439b0854d 100644 (file)
@@ -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
 }
-