[packages] aiccu: Add 'restart' option to force restart of daemon instead of HUP (#7629)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28727 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2011-11-03 16:05:42 +00:00
parent 6a9bf1e4d4
commit 621678bcea
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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"
}