summaryrefslogtreecommitdiffhomepage
path: root/contrib/package
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/package')
-rw-r--r--contrib/package/freifunk-policyrouting/Makefile8
l---------contrib/package/freifunk-policyrouting/files/etc/rc.d/S15-freifunk-policyrouting1
-rwxr-xr-xcontrib/package/freifunk-policyrouting/ipkg/postinst6
3 files changed, 9 insertions, 6 deletions
diff --git a/contrib/package/freifunk-policyrouting/Makefile b/contrib/package/freifunk-policyrouting/Makefile
index cec08a2f34..01a859ad2a 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 0000000000..3c3dad87d1
--- /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 9dc28744a3..0000000000
--- 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
-}