meshwizard: add option addchannelbefore
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_system.sh
index eb899d0..e9ce953 100755 (executable)
@@ -1,13 +1,7 @@
 #!/bin/sh
-# Sets values from /etc/config/freifunk and/or the community profile in /etc/config/system
 
 . $dir/functions.sh
 
-if [ -n "$(env | grep '^system_')" ]; then
-       env | grep "^system_" | sed "s/system_/uci set system.system./g" | while read line; do
-               eval $line
-       done
-fi
-
+set_defaults "system_" system.system
 uci -q delete meshwizard.system && uci commit meshwizard
 uci_commitverbose "System config" system