netifd: fix "Command failed: Not found" error with dhcp
[openwrt.git] / package / netifd / files / lib / netifd / proto / dhcp.sh
index eab1462..4bdb3a7 100755 (executable)
@@ -40,7 +40,8 @@ proto_dhcp_setup() {
 }
 
 proto_dhcp_teardown() {
-       proto_kill_command
+       local interface="$1"
+       proto_kill_command "$interface"
 }
 
 add_protocol dhcp