From ba17cd9745c8904095303b9c883d7c9857084586 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Thu, 3 Nov 2011 16:05:42 +0000 Subject: [PATCH] aiccu: Add 'restart' option to force restart of daemon instead of HUP (#7629) SVN-Revision: 28727 --- ipv6/aiccu/Makefile | 2 +- ipv6/aiccu/files/aiccu.hotplug | 2 +- ipv6/aiccu/files/aiccu.init | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ipv6/aiccu/Makefile b/ipv6/aiccu/Makefile index 496fce4dc..b2c4f22dd 100644 --- a/ipv6/aiccu/Makefile +++ b/ipv6/aiccu/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=aiccu PKG_VERSION:=20070115 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix diff --git a/ipv6/aiccu/files/aiccu.hotplug b/ipv6/aiccu/files/aiccu.hotplug index b88697621..5830415a4 100644 --- a/ipv6/aiccu/files/aiccu.hotplug +++ b/ipv6/aiccu/files/aiccu.hotplug @@ -1,2 +1,2 @@ #!/bin/sh -[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && /etc/init.d/aiccu enabled && /etc/init.d/aiccu start +[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && /etc/init.d/aiccu enabled && /etc/init.d/aiccu restart diff --git a/ipv6/aiccu/files/aiccu.init b/ipv6/aiccu/files/aiccu.init index bc5ef7543..9261db8c7 100644 --- a/ipv6/aiccu/files/aiccu.init +++ b/ipv6/aiccu/files/aiccu.init @@ -57,7 +57,8 @@ stop_instance() { restart_instance() { local cfg="$1" - stop_instance "$cfg" + config_get_bool restart "$cfg" restart 0 + [ "$restart" -eq 1 ] && stop_instance "$cfg" start_instance "$cfg" } -- 2.30.2