]> Zhao Yanbai Git Server - minix.git/commitdiff
netconf: psip0 is not a driver (Bug#500, reported by Roman Ignatov)
authorDavid van Moolenbroek <david@minix3.org>
Fri, 2 Jul 2010 11:22:42 +0000 (11:22 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Fri, 2 Jul 2010 11:22:42 +0000 (11:22 +0000)
commands/netconf/netconf.sh
etc/usr/rc

index 70a03d1f2bd7c4a6c991122e21866245d7aaded4..98b22ff11fa118e552c8cc0043fca976ea3eb339 100644 (file)
@@ -319,7 +319,11 @@ test "$cd" != "yes" && test -f $INETCONF && mv $INETCONF "$INETCONF~" &&
 test "$cd" != "yes" && test -f $LOCALRC && mv $LOCALRC "$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
 
 if [ -n "$manual" ]
index 050a7f4a24cee1364459784f500543bb1f0590a3..665fcdf28fccc1263c5b2a352bd7a345ec2250f2 100644 (file)
@@ -148,7 +148,7 @@ start)
        else
            # Standard network daemons.
            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
            else
                        daemonize dhcpd