flm01/mote/v2/openwrt/package/luci/applications/luci-ushare/ipkg/postinst

6 lines
176 B
Bash

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