PS: Below is the code, if anybody is interested. Should be run
before /etc/netstart. To use it you should create a file
/etc/ifconfig.xx:xx:xx:xx:xx:xx
for each network device ("xx:xx:xx:xx:xx:xx" is the MAC
address). Each line is run with
ifconfig if $line
Here is a sample
inet 172.19.96.1/24
inet alias 172.19.97.1/24
group int_if
Comments are welcome.
Regards
Harri
==================================================================
# /etc/netstart.local
#
# local netstart extension
#
echo 'create interface groups'
for i in $(ifconfig | grep '^[a-zA-Z0-9]*: flags=' | cut -d: -f1); do
mac=$(ifconfig $i | grep 'lladdr' | awk '{ print $2 }')
test "$mac" || continue
test -f "/etc/ifconfig.$mac" || continue
cat "/etc/ifconfig.$mac" | egrep -v '^[[:space:]]*#|^[[:space:]]*$' | while
read line; do
echo ifconfig $i $line
ifconfig $i $line
done
done