my $cfg = $CONFIG->{simple_tc}; print "#/bin/sh\n\n"; foreach my $name (sort keys %{$cfg}) { my $interface = $cfg->{$name}; print "uci -q get gluon-simple-tc.$name >/dev/null || uci -q batch <{$_}\n"; } print "EOF\n\n"; } print "uci commit gluon-simple-tc\n";