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
#!/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
restart_instance() {
local cfg="$1"
- stop_instance "$cfg"
+ config_get_bool restart "$cfg" restart 0
+ [ "$restart" -eq 1 ] && stop_instance "$cfg"
start_instance "$cfg"
}