diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-28 22:51:16 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-11-29 19:50:23 -0600 |
commit | bf8549ff0e1155d46a14600e439b5b055ba70172 (patch) | |
tree | 8419f6dbc6460bddc02812ed39df81a45a1a08ee | |
parent | 265ae9c733328fda68911f05f85a356e285f2947 (diff) | |
download | slacknetsetup-bf8549ff0e1155d46a14600e439b5b055ba70172.tar.xz |
Match interface name exactly when taking interfaces down.
Thanks to Master-Passeli for the bug report.
-rw-r--r-- | rc.inet1 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -510,7 +510,7 @@ if_down() { return fi info_log "${1}: de-configuring interface" - if [ -e /sys/class/net/${1%%[:.]*} ]; then + if [ -e /sys/class/net/${1} ]; then if [ "${USE_DHCP[$i]}" = "yes" ] || [ "${USE_DHCP6[$i]}" = "yes" ]; then # take down dhcpcd info_log "${1}: stopping dhcpcd" # When using -k, dhcpcd requires some command line options to match those used to invoke it: |