diff --git a/ipv6/ahcpd/Makefile b/ipv6/ahcpd/Makefile index dbaa664b2..19beb3074 100644 --- a/ipv6/ahcpd/Makefile +++ b/ipv6/ahcpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ahcpd PKG_VERSION:=0.52 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/ diff --git a/ipv6/ahcpd/files/ahcp.sh b/ipv6/ahcpd/files/ahcp.sh index 6dc8c9758..11788e29f 100644 --- a/ipv6/ahcpd/files/ahcp.sh +++ b/ipv6/ahcpd/files/ahcp.sh @@ -2,12 +2,13 @@ setup_interface_ahcp() { local interface="$1" local config="$2" + setup_interface_none "$interface" "$config" + local mode=$(uci_get_state ahcpd "@ahcpd[0]" mode "client") if [ "$mode" != "client" ]; then echo "Warning: ahcp ignored for $interface (mode is $mode, should be client)." echo "Fix ahcp mode in /etc/config/ahcpd." - return + else + /etc/init.d/ahcpd restart fi - setup_interface_none "$interface" "$config" - /etc/init.d/ahcpd restart }