| # broadcast=172.16.22.255 |
| # dns=10.34.32.125 10.32.63.5 10.34.255.7 10.11.255.27 |
| # domain=lab.example.com example.com |
| # ntpsrv=10.34.32.125 10.34.255.7 |
| #if[$cfg]=...; ip[$cfg]=...; ipmask[$cfg]=.../...; gw[$cfg]=...; net[$cfg]=... dns[$cfg]=... |
| test "$interface" || exit 1 |
| test "$interface" && echo "if[\$cfg]='$interface'" |
| test "$ip" && echo "ip[\$cfg]='$ip'" |
| test "$ip" && test "$mask" \ |
| && echo "ipmask[\$cfg]='$ip/$mask'" |
| test "$router" && echo "gw[\$cfg]='$router'" |
| test "$dns" && echo "dns[\$cfg]='$dns'" |
| # TODO: I never saw a dhcp server which correctly announces |
| # which subnet(s) is/are available thru advertised router |