rendered paste body##### /etc/config/testconfig
config testconfig
option testvar 'abc'
##### /etc/init.d/testconfig
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=11
. /etc/functions.sh
start_service () {
local section="$1"
config_get testvar "$section" testvar
echo $testvar
config_set "$section" "testvar" "foobar"
}
start () {
config_load "testconfig"
config_foreach start_service testconfig
}
##### /etc/init.d/testconfig start && uci show testconfig
abc
testconfig.cfg1=testconfig
testconfig.cfg1.testvar=abc