[packages] aiccu: create /var/etc as well
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Nov 2011 17:19:43 +0000 (17:19 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Nov 2011 17:19:43 +0000 (17:19 +0000)
SVN-Revision: 28729

ipv6/aiccu/files/aiccu.init

index 9261db8c7d48a4d0ac015508162c7598ad0db476..0620c754269a8c176622646bc702cabdd9d4bfec 100644 (file)
@@ -29,7 +29,7 @@ start_instance() {
        CFGFILE="/var/etc/aiccu-${cfg}.conf"
        PIDFILE="/var/run/aiccu-${cfg}.pid"
        args=""
-       
+
        add_config "$cfg" username username
        add_config "$cfg" password password
        add_config "$cfg" server server
@@ -43,7 +43,7 @@ start_instance() {
        append args "daemonize true" "\n"
        append args "pidfile $PIDFILE" "\n"
 
-       mkdir -p /var/run
+       mkdir -p /var/run /var/etc
        echo -e "$args" > "$CFGFILE"
 
        config_get_bool enabled "$cfg" enabled '1'
@@ -75,4 +75,4 @@ stop() {
 restart() {
        config_load aiccu
        config_foreach restart_instance aiccu
-}
\ No newline at end of file
+}