diff options
3 files changed, 9 insertions, 6 deletions
diff --git a/contrib/package/freifunk-policyrouting/Makefile b/contrib/package/freifunk-policyrouting/Makefile index cec08a2f3..01a859ad2 100644 --- a/contrib/package/freifunk-policyrouting/Makefile +++ b/contrib/package/freifunk-policyrouting/Makefile @@ -36,4 +36,12 @@ define Package/freifunk-policyrouting/install $(CP) ./files/* $(1)/ endef +define Package/freifunk-policyrouting/postinst +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + /etc/init.d/freifunk-policyrouting enabled || /etc/init.d/freifunk-policyrouting enable + exit 0 +} +endef + $(eval $(call BuildPackage,freifunk-policyrouting)) diff --git a/contrib/package/freifunk-policyrouting/files/etc/rc.d/S15-freifunk-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/rc.d/S15-freifunk-policyrouting new file mode 120000 index 000000000..3c3dad87d --- /dev/null +++ b/contrib/package/freifunk-policyrouting/files/etc/rc.d/S15-freifunk-policyrouting @@ -0,0 +1 @@ +../init.d/freifunk-policyrouting
\ No newline at end of file diff --git a/contrib/package/freifunk-policyrouting/ipkg/postinst b/contrib/package/freifunk-policyrouting/ipkg/postinst deleted file mode 100755 index 9dc28744a..000000000 --- a/contrib/package/freifunk-policyrouting/ipkg/postinst +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -[ -n "${IPKG_INSTROOT}" ] || { - /etc/init.d/freifunk-policyrouting enabled || /etc/init.d/freifunk-policyrouting enable - exit 0 -} |