PKG_NAME:=aiccu
PKG_VERSION:=20070115
PKG_NAME:=aiccu
PKG_VERSION:=20070115
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
-[ "$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
restart_instance() {
local cfg="$1"
restart_instance() {
local cfg="$1"
+ config_get_bool restart "$cfg" restart 0
+ [ "$restart" -eq 1 ] && stop_instance "$cfg"