Changeset 20691


Ignore:
Timestamp:
2010-04-04T08:41:00+02:00 (8 years ago)
Author:
abyrne
Message:

[packages] wide-dhcpv6: Add debug option to dhcp6c

Location:
packages/ipv6/wide-dhcpv6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/wide-dhcpv6/Makefile

    r20212 r20691  
    44PKG_NAME:=wide-dhcpv6 
    55PKG_VERSION:=20080615 
    6 PKG_RELEASE:=3 
     6PKG_RELEASE:=4 
    77 
    88PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/ipv6/wide-dhcpv6/files/dhcp6c.conf

    r20212 r20691  
    33        option 'interface' 'wan'                        # This is the interface the DHCPv6 client will run on 
    44        option 'dns' 'dnsmasq'                          # Which DNS server you run (only dnsmasq currently supported) 
     5        option 'debug' '0'                              # 1 = enable debugging; 0 = disable debugging 
    56         
    67        # Send options (1 = send; 0 = do not send) 
  • packages/ipv6/wide-dhcpv6/files/dhcp6c.init

    r20212 r20691  
    110110        dhcp6c_write_config > $config_file 
    111111         
    112         /usr/sbin/dhcp6c -c $config_file $client_ifname 
     112        local debug 
     113        local debug_option 
     114        config_get_bool debug basic debug 0 
     115        [ $debug -eq 1 ] && debug_option="-D" 
     116        /usr/sbin/dhcp6c -c $config_file $debug_option $client_ifname 
    113117         
    114118        sleep 3 
Note: See TracChangeset for help on using the changeset viewer.