netconf: psip0 is not a driver (Bug#500, reported by Roman Ignatov)
This commit is contained in:
parent
630f566d3f
commit
9a37f63263
@ -319,7 +319,11 @@ test "$cd" != "yes" && test -f $INETCONF && mv $INETCONF "$INETCONF~" &&
|
|||||||
test "$cd" != "yes" && test -f $LOCALRC && mv $LOCALRC "$LOCALRC~" &&
|
test "$cd" != "yes" && test -f $LOCALRC && mv $LOCALRC "$LOCALRC~" &&
|
||||||
test "$v" = 1 && echo "Backed up $LOCALRC to $LOCALRC~"
|
test "$v" = 1 && echo "Backed up $LOCALRC to $LOCALRC~"
|
||||||
|
|
||||||
echo "eth0 $driver 0 { default; } ;" > $INETCONF
|
if [ "$driver" = "psip0" ]; then
|
||||||
|
echo "psip0 { default; } ;" > $INETCONF
|
||||||
|
else
|
||||||
|
echo "eth0 $driver 0 { default; } ;" > $INETCONF
|
||||||
|
fi
|
||||||
echo "$driverargs" > $LOCALRC
|
echo "$driverargs" > $LOCALRC
|
||||||
|
|
||||||
if [ -n "$manual" ]
|
if [ -n "$manual" ]
|
||||||
|
|||||||
@ -148,7 +148,7 @@ start)
|
|||||||
else
|
else
|
||||||
# Standard network daemons.
|
# Standard network daemons.
|
||||||
echo -n "Starting networking:"
|
echo -n "Starting networking:"
|
||||||
if grep -s 'psip0.*default' /etc/inet.conf
|
if grep -s 'psip0.*default' /etc/inet.conf >/dev/null
|
||||||
then ifconfig -h 10.0.0.1
|
then ifconfig -h 10.0.0.1
|
||||||
else
|
else
|
||||||
daemonize dhcpd
|
daemonize dhcpd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user