From: Gabriel Kerneis Date: Sat, 1 Oct 2011 11:30:03 +0000 (+0000) Subject: ahcpd: avoid half-configured ahcpd interfaces X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a43f3bdc83eba45e21d802d4e03d083ffe6cf8a4;p=openwrt%2Fsvn-archive%2Fpackages.git ahcpd: avoid half-configured ahcpd interfaces SVN-Revision: 28351 --- 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 }