contrib/freifunk-policyrouting: Fix autoenable, again.
authorManuel Munz <freifunk@somakoma.de>
Wed, 27 Mar 2013 09:14:54 +0000 (09:14 +0000)
committerManuel Munz <freifunk@somakoma.de>
Wed, 27 Mar 2013 09:14:54 +0000 (09:14 +0000)
contrib/package/freifunk-policyrouting/Makefile
contrib/package/freifunk-policyrouting/files/etc/rc.d/S15-freifunk-policyrouting [new symlink]
contrib/package/freifunk-policyrouting/ipkg/postinst [deleted file]

index cec08a2f341d54baa7e3430faad3e3ad499002b7..01a859ad2a498dac58ff289daa1d1fbb6f1f447f 100644 (file)
@@ -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 (symlink)
index 0000000..3c3dad8
--- /dev/null
@@ -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 (executable)
index 9dc2874..0000000
+++ /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
-}