Changeset 28351


Ignore:
Timestamp:
2011-10-01T13:30:03+02:00 (6 years ago)
Author:
kerneis
Message:

[packages] ahcpd: avoid half-configured ahcpd interfaces

Location:
packages/ipv6/ahcpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/ahcpd/Makefile

    r28337 r28351  
    1010PKG_NAME:=ahcpd 
    1111PKG_VERSION:=0.52 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/ipv6/ahcpd/files/ahcp.sh

    r28337 r28351  
    22        local interface="$1" 
    33        local config="$2" 
     4 
     5        setup_interface_none "$interface" "$config" 
    46 
    57        local mode=$(uci_get_state ahcpd "@ahcpd[0]" mode "client") 
     
    79                echo "Warning: ahcp ignored for $interface (mode is $mode, should be client)." 
    810                echo "Fix ahcp mode in /etc/config/ahcpd." 
    9                 return 
     11        else 
     12                /etc/init.d/ahcpd restart 
    1013        fi 
    11         setup_interface_none "$interface" "$config" 
    12         /etc/init.d/ahcpd restart 
    1314} 
Note: See TracChangeset for help on using the changeset viewer.