contrib/freifunk-gwcheck: Fix uci-defaults, add olsrd-mod-dyn-gw-plain depency
This commit is contained in:
parent
c4f19cbfd4
commit
e37546729c
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ define Package/freifunk-gwcheck
|
||||||
CATEGORY:=LuCI
|
CATEGORY:=LuCI
|
||||||
SUBMENU:=Freifunk
|
SUBMENU:=Freifunk
|
||||||
TITLE:=Freifunk gateway check script
|
TITLE:=Freifunk gateway check script
|
||||||
DEPENDS:=+firewall +ip +iptables-mod-ipopt
|
DEPENDS:=+firewall +ip +iptables-mod-ipopt +olsrd-mod-dyn-gw-plain
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/freifunk-gwcheck/description
|
define Package/freifunk-gwcheck/description
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
tables="/etc/iproute2/rt_tables"
|
tables="/etc/iproute2/rt_tables"
|
||||||
[ -z "`grep -q "gw-check" $tables`" ] && echo "200 gw-check" >> $tables
|
grep -q "gw-check" $tables || echo "200 gw-check" >> $tables
|
||||||
test -f /etc/crontabs/root || touch /etc/crontabs/root
|
test -f /etc/crontabs/root || touch /etc/crontabs/root
|
||||||
[ -z "`grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root`" ] && echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /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
|
/etc/init.d/cron restart
|
||||||
|
|
Loading…
Reference in a new issue