summaryrefslogtreecommitdiffhomepage
path: root/contrib/package
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-03-27 09:14:54 +0000
committerManuel Munz <freifunk@somakoma.de>2013-03-27 09:14:54 +0000
commit52eee5e701fb54e1f3764aa7747dd474eeaf0edd (patch)
treeccc876bcc563c788564d3d013cf33ec433b13b5a /contrib/package
parentc86bbfe3963e586c36cb3a5131c819d618c27e7b (diff)
contrib/freifunk-policyrouting: Fix autoenable, again.
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
-}