fff-fastd: new package

Signed-off-by: Tim Niemeyer <tim@tn-x.org>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
Reviewed-by: Jan Kraus <mayosemmel@gmail.com>
This commit is contained in:
Tim Niemeyer 2016-04-05 21:56:44 +02:00 committed by Tobias Klaus
parent 26779bee85
commit 7f42d5c4ec
5 changed files with 50 additions and 3 deletions

View File

@ -1 +0,0 @@
*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh

View File

@ -0,0 +1,45 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-fastd
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-fastd
include $(INCLUDE_DIR)/package.mk
define Package/fff-fastd
SECTION:=base
CATEGORY:=Freifunk
TITLE:=Freifunk-Franken fastd configuration script
URL:=http://www.freifunk-franken.de
DEPENDS:=+@BUSYBOX_CUSTOM \
+@BUSYBOX_CONFIG_FEATURE_WGET_TIMEOUT \
+@FASTD_ENABLE_METHOD_NULL \
+@FASTD_ENABLE_CIPHER_NULL \
+@FASTD_WITH_STATUS_SOCKET \
+fastd
endef
define Package/fff-fastd/description
This is the fastd for the Freifunk Franken Firmware
It is used to configure fastd.
endef
define Build/Prepare
echo "all: " > $(PKG_BUILD_DIR)/Makefile
endef
define Build/Configure
# nothing
endef
define Build/Compile
# nothing
endef
define Package/fff-fastd/install
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,fff-fastd))

View File

@ -1,5 +1,5 @@
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
sleep 3
sh /etc/fastdstart.sh
/usr/sbin/fastdstart
}

View File

@ -0,0 +1 @@
*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart

View File

@ -3,7 +3,9 @@
SERVER="no"
#SERVERNAME="--servername--"
project="${VPN_PROJECT}"
. /etc/community.cfg
project="$VPN_PROJECT"
test_ipv4_host1="keyserver.freifunk-franken.de" # Freifunk-Franken keyserver
test_ipv4_host2="8.8.8.8" # Google DNS