diff options
author | Judd Vinet <judd@archlinux.org> | 2005-12-07 00:21:45 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-12-07 00:21:45 +0000 |
commit | d768a9c95a254e09a34c39aa86840c01cb6d97dd (patch) | |
tree | 00952a5e4b0530ab1dd26fa2c7a44908c4ef9247 | |
parent | f45c3abd5697fa89d1a6431d8dbf5e96e6804ca8 (diff) |
changed both network scripts to use good ol' /bin/kill instead of dhcpcd's -k switch (I forgot about #2942)
-rwxr-xr-x | netcfg | 4 | ||||
-rwxr-xr-x | network | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -52,7 +52,7 @@ stop_profile() [ "$USEWPA" = "yes" -o "$USEWPA" = "YES" ] && wpa_cli terminate >/dev/null 2>&1 # bring down dhcpcd if we're using it - [ "$IFOPTS" = "dhcp" -o "$IFOPTS" = "DHCP" ] && dhcpcd -k $INTERFACE + [ "$IFOPTS" = "dhcp" -o "$IFOPTS" = "DHCP" ] && kill `cat /etc/dhcpc/dhcpcd-${INTERFACE}.pid` # bring down the interface itself ifconfig $INTERFACE down @@ -198,7 +198,7 @@ menu() # if no default yet, use the first entry [ "$DEFAULT" = "" ] && DEFAULT=${profiles[0]} - ANSWER=`mktemp` + ANSWER=`mktemp` || exit 1 if [ "$TIMEOUT" != "" ]; then dialog \ @@ -58,7 +58,7 @@ ifdown() eval ifcfg="\$${1}" if [ "$ifcfg" = "dhcp" ]; then if [ -f /etc/dhcpc/dhcpcd-${1}.pid ]; then - /sbin/dhcpcd -k ${1} + kill `cat /etc/dhcpc/dhcpcd-${1}.pid` else # No .pid file, just bring the interface itself down /sbin/ifconfig ${1} down |