d6b30e3dd688862997bc24e80287391fe6a460e0
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_system.sh
1 #!/bin/sh
2 # Sets values from /etc/config/freifunk and/or the community profile in /etc/config/system
3
4 if [ -n "$(env | grep '^system_')" ]; then
5         echo "++++ Setup system"
6         env | grep "^system_" | sed "s/system_/uci set system.system./g" | while read line; do
7                 eval $line
8                 echo "    $line"
9         done
10 fi
11
12 uci commit system