thank you Jow!
2013/1/4 Jo-Philipp Wich
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi.
>
> > how to get the value of the option name? Can i use foreach? follow
> > is my program [...]
>
> m.uci:foreach("dhcp", "host",
> function(section)
> profile:value(section['name'])
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi.
> how to get the value of the option name? Can i use foreach? follow
> is my program [...]
m.uci:foreach("dhcp", "host",
function(section)
profile:value(section['name'])
end)
~ Jow
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.
hi all , The following is my dhcp config
config host
option name 'q'
option mac '64:31:50:93:f5:2c'
option ip '192.168.11.123'
config host
option name 'w'
option mac '64:31:50:93:f5:2c'
option ip '192.168.11.124'
how to get the value of the option