2 # This is only run once (usually after flashing an image from the imagebuilder)
3 # It sets up the initial config for this node.
13 # Rename system config
15 if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
16 section_rename system $1 system
19 config_foreach handle_system system
21 if [ -n "$(uci -q get meshwizard.community)" ]; then
22 echo " + Setup community"
23 set_defaults "community_" freifunk.community
24 uci -q delete meshwizard.community
25 uci_commitverbose freifunk
28 if [ -n "$(uci -q get meshwizard.contact)" ]; then
29 echo " + Setup contact"
30 set_defaults "contact_" freifunk.contact
31 uci -q delete meshwizard.contact && uci_commitverbose freifunk
34 if [ "$has_luci" == TRUE ]; then
36 set_defaults "luci_main_" luci.main
37 uci -q delete meshwizard.luci_main && uci_commitverbose luci