PKG_NAME:=wide-dhcpv6
PKG_VERSION:=20080615
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
option 'enabled' '0' # 1 = enabled; 0 = disabled
option 'interface' 'wan' # This is the interface the DHCPv6 client will run on
option 'dns' 'dnsmasq' # Which DNS server you run (only dnsmasq currently supported)
+ option 'debug' '0' # 1 = enable debugging; 0 = disable debugging
# Send options (1 = send; 0 = do not send)
option 'pd' '1' # Prefix Delegation
mkdir -m 755 -p /var/etc
dhcp6c_write_config > $config_file
- /usr/sbin/dhcp6c -c $config_file $client_ifname
+ local debug
+ local debug_option
+ config_get_bool debug basic debug 0
+ [ $debug -eq 1 ] && debug_option="-D"
+ /usr/sbin/dhcp6c -c $config_file $debug_option $client_ifname
sleep 3
ACTION=start /sbin/hotplug-call dhcp6c