#! /bin/sh if [ -f /var/run/template.conf ] then # get configuration from file, format: # name ipaddr network netmask conf=`cat /var/run/template.conf` set $conf # show configuration while [ "$1" != "" ] do echo "name: $1 ipaddr: $2 network: $3 netmask: $4" shift 4 done fi