#! /bin/sh

# unload any network drivers which have been installed
# by rc.sysinit, so that we can allocate eth0/eth1 as we
# choose, rather than in order defined by kmodule
kmodule | while read devtype mod
do
   if [ "$devtype" = "NETWORK" ]
   then
        /sbin/rmmod $mod 2>/dev/null
   fi
done
