2011-09-23 19:23:18 +00:00
# Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
# This is free software, licensed under the Apache 2.0 license.
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := freifunk-gwcheck
2013-10-05 18:15:35 +00:00
PKG_RELEASE := 4
2011-09-23 19:23:18 +00:00
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / f r e i f u n k - g w c h e c k
SECTION:= luci
CATEGORY:= LuCI
2011-10-23 14:20:51 +00:00
SUBMENU:= 9. Freifunk
2011-09-23 19:23:18 +00:00
TITLE:= Freifunk gateway check script
2014-04-23 12:15:02 +00:00
DEPENDS:= firewall +ip +iptables-mod-ipopt +olsrd-mod-dyn-gw-plain
2011-09-23 19:23:18 +00:00
e n d e f
d e f i n e P a c k a g e / f r e i f u n k - g w c h e c k / d e s c r i p t i o n
This script periodically checks if internet is available via your own gateway. If it detects that it is broken, then the defaultroute is removed from the main table and temporarilly placed in table gw-check until your internet works again. Config file is /etc/config/freifunk-gwcheck.
e n d e f
d e f i n e B u i l d / P r e p a r e
mkdir -p $( PKG_BUILD_DIR)
e n d e f
d e f i n e B u i l d / C o n f i g u r e
e n d e f
d e f i n e B u i l d / C o m p i l e
e n d e f
d e f i n e P a c k a g e / f r e i f u n k - g w c h e c k / i n s t a l l
$( CP) ./files/* $( 1) /
2011-11-13 13:48:48 +00:00
$( CP) ./root/* $( 1) /
2011-09-23 19:23:18 +00:00
e n d e f
$( eval $ ( call BuildPackage ,freifunk -gwcheck ) )