Skip to content
Snippets Groups Projects
Commit f458a8f2 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

fix ifdown hotplug event for static

SVN-Revision: 5490
parent 57f2868c
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,11 @@ debug "### ifdown $cfg ###" ...@@ -12,6 +12,11 @@ debug "### ifdown $cfg ###"
config_get proto "$cfg" proto config_get proto "$cfg" proto
[ -z "$proto" ] && { echo "interface not found."; exit; } [ -z "$proto" ] && { echo "interface not found."; exit; }
config_get iface "$cfg" device
[ "$proto" = "static" ] && {
env -i ACTION="ifdown" INTERFACE="$config" DEVICE="$iface" PROTO=static /sbin/hotplug "iface" &
}
# call interface stop handler # call interface stop handler
( type "stop_interface_$proto" ) >/dev/null 2>/dev/null && eval "stop_interface_$proto '$cfg'" ( type "stop_interface_$proto" ) >/dev/null 2>/dev/null && eval "stop_interface_$proto '$cfg'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment