summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-gwcheck/ipkg
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-09-23 19:23:18 +0000
committerManuel Munz <freifunk@somakoma.de>2011-09-23 19:23:18 +0000
commitd8e4734b23016cea5c5099f84a7f2ffbab8e6216 (patch)
treecb1f06928a006357b7e0a532dd0765dc76ffc87d /contrib/package/freifunk-gwcheck/ipkg
parent9ed39e1431395bb84c486df94bc0a3660d7f0936 (diff)
contrib/package: Add freifunk-gwcheck to replace the gateway-check in modules/freifunk
Diffstat (limited to 'contrib/package/freifunk-gwcheck/ipkg')
-rw-r--r--contrib/package/freifunk-gwcheck/ipkg/postinst4
-rw-r--r--contrib/package/freifunk-gwcheck/ipkg/postrm5
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/package/freifunk-gwcheck/ipkg/postinst b/contrib/package/freifunk-gwcheck/ipkg/postinst
new file mode 100644
index 0000000000..1c5308ff69
--- /dev/null
+++ b/contrib/package/freifunk-gwcheck/ipkg/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ ( . /etc/uci-defaults/freifunk-gwcheck ) && rm -f /etc/uci-defaults/freifunk-gwcheck
+}
diff --git a/contrib/package/freifunk-gwcheck/ipkg/postrm b/contrib/package/freifunk-gwcheck/ipkg/postrm
new file mode 100644
index 0000000000..18e4a07d01
--- /dev/null
+++ b/contrib/package/freifunk-gwcheck/ipkg/postrm
@@ -0,0 +1,5 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+ sed -i '/gw-check/d' /etc/iproute2/rt_tables
+ sed -i '/ff_olsr_test_gw.sh/d' /etc/crontabs/root
+}