summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rc.inet12
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.inet1 b/rc.inet1
index b19d017..6f4e8ab 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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: