All pastes #119650 Raw Edit

Anonymous

public shellscript v1 · immutable
·published 2006-08-06 22:55 UTC
rendered paste body
### config file: /etc/config/networkconfig interface    lan    option ipaddr   192.168.1.1    option netmask  255.255.255.0    option gateway  192.168.1.2    option dns      "192.168.1.2 192.168.1.3"        ### code for parsing it. /etc/functions.sh    config_cb() {    echo "New section: $2 (type: $1)"}option_cb() {    echo "  $1 = $2"}       config_load networkconfig_get lanip lan ipaddrecho "LAN IP: $lanip"