strange thing about the network script
Florin Braescu
florin at lunar-linux.org
Sun Feb 20 15:26:11 UTC 2005
Pe data de Sîm 19 Feb 2005 10:10, Edd Budulea a scris:
> If I do service network start
> everything is ok
> If I do service network stop and service network start
> is still ok
> If I do service network restart
> it is working only half way, it will not set the
> default gateway. If you set up a DHCP you will not see
> the problem, only if yo uhave a static ip with a
> static gateway.
>
> >From what I see in restart case it does not call route
>
> add default.
>
A simple form of the restart function can be this:
restart() {
echo "Restarting network:"
$0 stop $2
$0 start $2
}
Florin
More information about the Lunar
mailing list