flm01/openwrt/package/luci/applications/luci-asterisk/ipkg/postinst

6 lines
184 B
Bash
Executable File

#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
( . /etc/uci-defaults/luci-asterisk ) && rm -f /etc/uci-defaults/luci-asterisk
/etc/init.d/asterisk enabled || /etc/init.d/asterisk enable
}