contrib/freifunk-policyrouting: Use postinst to enable freifunk-policyrouting
authorManuel Munz <freifunk@somakoma.de>
Tue, 26 Mar 2013 16:48:20 +0000 (16:48 +0000)
committerManuel Munz <freifunk@somakoma.de>
Tue, 26 Mar 2013 16:48:20 +0000 (16:48 +0000)
contrib/package/freifunk-policyrouting/ipkg/postinst [new file with mode: 0755]

diff --git a/contrib/package/freifunk-policyrouting/ipkg/postinst b/contrib/package/freifunk-policyrouting/ipkg/postinst
new file mode 100755 (executable)
index 0000000..9dc2874
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ -n "${IPKG_INSTROOT}" ] || {
+       /etc/init.d/freifunk-policyrouting enabled || /etc/init.d/freifunk-policyrouting enable
+       exit 0
+}