Put asterisk database in ram (#1295)
authorFlorian Fainelli <florian@openwrt.org>
Mon, 7 May 2007 11:47:00 +0000 (11:47 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 7 May 2007 11:47:00 +0000 (11:47 +0000)
SVN-Revision: 7122

net/asterisk/files/asterisk.init

index 1c97a18..00a4c8b 100644 (file)
@@ -8,7 +8,10 @@ start() {
        [ -f $DEFAULT ] && . $DEFAULT
        [ -d /var/run ] || mkdir -p /var/run
        [ -d /var/log/asterisk ] || mkdir -p /var/log/asterisk
-       [ -d /var/spool/asterisk ] || mkdir -p /var/spool/asterisk
+       [ -d /var/spool/asterisk ] || {
+               mkdir -p /var/spool/asterisk
+               ln -s /usr/lib/asterisk/astdb /var/spool/asterisk/astdb
+       }
        /usr/sbin/asterisk $OPTIONS
 }