flm01/mote/v1/openwrt/package/luci/applications/luci-p2pblock/ipkg/postinst

6 lines
202 B
Bash
Executable File

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