From: Michael Geddes Date: Wed, 14 Jan 2009 01:53:07 +0000 (+0000) Subject: Fix up udev zap devices to look like devfs (which asterisk expects). X-Git-Tag: 0.9.0~799 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d415e9ac42e23ce2c0784be0e092205ec82c78df;p=oweals%2Fluci.git Fix up udev zap devices to look like devfs (which asterisk expects). --- diff --git a/contrib/package/asterisk-xip/files/asterisk.init b/contrib/package/asterisk-xip/files/asterisk.init index 4b17c4327..b2acd2aa8 100755 --- a/contrib/package/asterisk-xip/files/asterisk.init +++ b/contrib/package/asterisk-xip/files/asterisk.init @@ -46,9 +46,11 @@ reload_uci() { start() { [ -f $DEFAULT ] && . $DEFAULT - case ${ENABLE_ASTERISK:-no} in + case ${ENABLE_ASTERISK-no} in uci) start_uci ;; yes) + # Handle zappseudo in the wrong place. + [ -e /dev/zappseudo ] && [ ! -d /dev/zap -o ! -e /dev/zap/pseudo ] && mkdir -p /dev/zap && ln -s /dev/zappseudo /dev/zap/pseudo [ -d /var/run ] || mkdir -p /var/run [ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk [ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk