diff options
author | Robby Workman <rworkman@slackware.com> | 2017-01-06 21:24:12 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2017-07-11 16:58:52 -0500 |
commit | b6d44a0ea3113f6d4f86022ca98bdfd6ad08f72c (patch) | |
tree | 92e8fc2782a52b6e61c03cd49b8b5c59950a13c1 | |
parent | 711b45f9c5230439784a02ad74fe4507a9d1e024 (diff) | |
download | slacknetsetup-b6d44a0ea3113f6d4f86022ca98bdfd6ad08f72c.tar.xz |
rc.inet1: Migrate code to take down interfaces
-rw-r--r-- | rc.inet1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -206,11 +206,11 @@ if_down() { if grep `echo ${1}: | cut -f 1 -d :`: /proc/net/dev 1> /dev/null ; then if [ "${USE_DHCP[$i]}" = "yes" ]; then echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -k -d ${1}" | $LOGGER - /sbin/dhcpcd -k -d ${1} 2> /dev/null || /sbin/ifconfig ${1} down + /sbin/dhcpcd -k -d ${1} 2> /dev/null || /sbin/ip link set dev ${1} down sleep 1 else - echo "/etc/rc.d/rc.inet1: /sbin/ifconfig ${1} down" | $LOGGER - /sbin/ifconfig ${1} down + echo "/etc/rc.d/rc.inet1: /sbin/ip link set dev ${1} down" | $LOGGER + /sbin/ip link set dev ${1} down fi if [ -x /etc/rc.d/rc.wireless ]; then . /etc/rc.d/rc.wireless ${1} stop # Kill wireless daemons if any. |