aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-03-10 16:57:50 +0000
committerErik Troan <ewt@redhat.com>1999-03-10 16:57:50 +0000
commit6d2ac2a47bc68516a10ce8fde2a035d4bca3a425 (patch)
treeea83ade0eccbcd90c65236325e2ab15dee546575
parent4e6201458d7ab6429270583a3f156311262c27b0 (diff)
downloadinitscripts-6d2ac2a47bc68516a10ce8fde2a035d4bca3a425.tar
initscripts-6d2ac2a47bc68516a10ce8fde2a035d4bca3a425.tar.gz
initscripts-6d2ac2a47bc68516a10ce8fde2a035d4bca3a425.tar.bz2
initscripts-6d2ac2a47bc68516a10ce8fde2a035d4bca3a425.tar.xz
initscripts-6d2ac2a47bc68516a10ce8fde2a035d4bca3a425.zip
pump actually works now
-rwxr-xr-xsysconfig/network-scripts/ifdown9
-rwxr-xr-xsysconfig/network-scripts/ifup4
2 files changed, 4 insertions, 9 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 94fe5593..6f02c394 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -41,13 +41,8 @@ else
ISALIAS=no
fi
-if [ "$BOOTPROTO" = dhcp -a "$ISALIAS" = no ]; then
- if [ -f /var/run/dhcpcd-${DEVICE}.pid ]; then
- kill `cat /var/run/dhcpcd-${DEVICE}.pid`
- rm -f /var/run/dhcpcd-${DEVICE}.pid
- exit 0
- fi
- exit 1
+if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
+ pump -r -i ${DEVICE}
fi
ifconfig ${DEVICE} down
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index be8c48b9..209fd41a 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -49,7 +49,7 @@ if [ "$BOOTP" = "yes" ]; then
BOOTPROTO=bootp
fi
-if [ "$BOOTPROTO" = bootp -r "$BOOTPROTO" = dhcp ]; then
+if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
PUMP=true
fi
@@ -78,7 +78,7 @@ if [ "$SLAVE" = yes -a "$ISALIAS" = no -a "$MASTER" != "" -a \
fi
if [ -n "$PUMP" ]; then
- echo "Determing IP information for $DEVICE..."
+ echo -n "Determing IP information for $DEVICE..."
if /sbin/pump -i $DEVICE ; then
echo " done."
else