--- rc.interfaces.orig 2006-06-14 17:49:00.000000000 +0200 +++ rc.interfaces 2006-08-03 17:51:23.000000000 +0200 @@ -10,13 +10,14 @@ source /lib/initscripts/functions TEXTDOMAIN=interfaces TEXTDOMAINDIR=/lib/initscripts/messages +net=`cat /proc/cmdline|grep network|sed 's/.*network=\(.*\)/\1/'|cut -d ' ' -f1` actions=(restart start stop status list profilename) rc_start() { msg $"Bringing up network interfaces" - netconfig start + netconfig $net start if [ "$?" == "127" ]; then ok 999 else @@ -27,7 +28,7 @@ rc_stop() { msg $"Shutting down network interfaces" - netconfig stop + netconfig $net stop if [ "$?" == "127" ]; then ok 999 else @@ -38,7 +39,7 @@ rc_restart() { msg $"Restarting network interfaces" - netconfig restart + netconfig $net restart if [ "$?" == "127" ]; then ok 999 else @@ -57,5 +58,3 @@ restart) rc_restart ;; *) netconfig $1 ;; esac - -# vim: ft=sh