#!/bin/sh
-. /etc/functions.sh
+. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
local config="$1"
local iface="$2"
- json_get_var ipaddr ipaddr
- json_get_var hostname hostname
- json_get_var clientid clientid
- json_get_var vendorid vendorid
- json_get_var broadcast broadcast
- json_get_var reqopts reqopts
+ json_get_vars ipaddr hostname clientid vendorid broadcast reqopts
local opt dhcpopts
for opt in $reqopts; do
}
proto_dhcp_teardown() {
- proto_kill_command
+ local interface="$1"
+ proto_kill_command "$interface"
}
add_protocol dhcp