diff options
author | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-01-14 01:53:07 +0000 |
---|---|---|
committer | Michael Geddes <openwrt@frog.wheelycreek.net> | 2009-01-14 01:53:07 +0000 |
commit | d415e9ac42e23ce2c0784be0e092205ec82c78df (patch) | |
tree | b59a3c7e04119fc11e70ba2e055836d951091a75 /contrib/package/asterisk-xip/files | |
parent | 987f7505b9ffa7bd2bdfbaa50e1af3538632c224 (diff) |
Fix up udev zap devices to look like devfs (which asterisk expects).
Diffstat (limited to 'contrib/package/asterisk-xip/files')
-rwxr-xr-x | contrib/package/asterisk-xip/files/asterisk.init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/package/asterisk-xip/files/asterisk.init b/contrib/package/asterisk-xip/files/asterisk.init index 4b17c43270..b2acd2aa83 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 |