/etc/init.d/ethnet

Gerard Beekmans gerard at linuxfromscratch.org
Mon Dec 4 13:23:26 PST 2000


> case "1" in
>     start)
>         echo -n "Bringing up the eth0 interface..."
>         /sbin/ifconfig eth0 $IP broadcast $BROADCAST netmask $NETMASK
>         evaluate_retval
>
> 	if [ "$GATEWAY" != "" ]; then
>           echo -n "Setting up routing for eth0 interface..."
>           /sbin/route add default gw $GATEWAY metric 1
>           evaluate_retval
> 	fi
>         ;;
>
>     stop)
>
>
> 	J-F

I like that proposal best. Consider it added to 2.4.4

-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list