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

call interface stop handler on ifdown

SVN-Revision: 5432
parent 68334478
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@ debug "### ifdown $cfg ###"
config_get proto "$cfg" proto
[ -z "$proto" ] && { echo "interface not found."; exit; }
# call interface stop handler
( type "stop_interface_$proto" ) >/dev/null 2>/dev/null && eval "stop_interface_$proto '$cfg'"
# make sure all locks are removed
for lock in "/var/lock/dhcp-$iface" "/var/lock/ppp-$iface"; do
[ -f "$lock" ] && {
......
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