From 8eaac4b637d989680ad86dc3e84b0f3b547c1619 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 27 Jan 2016 16:47:23 +0100 Subject: Use numeric prefixes for uci-defaults scripts Signed-off-by: Jo-Philipp Wich --- .../freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck | 7 +++++++ .../freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck delete mode 100644 contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck (limited to 'contrib/package/freifunk-gwcheck') diff --git a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck new file mode 100644 index 000000000..33b1b99df --- /dev/null +++ b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck @@ -0,0 +1,7 @@ +#!/bin/sh +tables="/etc/iproute2/rt_tables" +test -d /etc/iproute2/ || mkdir -p /etc/iproute2/ +grep -q "gw-check" $tables || echo "200 gw-check" >> $tables +test -f /etc/crontabs/root || touch /etc/crontabs/root +grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root +/etc/init.d/cron restart diff --git a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck deleted file mode 100644 index 33b1b99df..000000000 --- a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -tables="/etc/iproute2/rt_tables" -test -d /etc/iproute2/ || mkdir -p /etc/iproute2/ -grep -q "gw-check" $tables || echo "200 gw-check" >> $tables -test -f /etc/crontabs/root || touch /etc/crontabs/root -grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root -/etc/init.d/cron restart -- cgit v1.2.3