1 # Copyright (C) 2011 Manuel Munz <freifunk at somakoma de>
2 # This is free software, licensed under the Apache 2.0 license.
4 include $(TOPDIR
)/rules.mk
6 PKG_NAME
:=freifunk-gwcheck
9 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
11 include $(INCLUDE_DIR
)/package.mk
13 define Package
/freifunk-gwcheck
17 TITLE
:=Freifunk gateway
check script
18 DEPENDS
:=firewall3
+ip
+iptables-mod-ipopt
+olsrd-mod-dyn-gw-plain
21 define Package
/freifunk-gwcheck
/description
22 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.
26 mkdir
-p
$(PKG_BUILD_DIR
)
29 define Build
/Configure
35 define Package
/freifunk-gwcheck
/install
40 $(eval
$(call BuildPackage
,freifunk-gwcheck
))