Skip to content
Snippets Groups Projects
Commit 7f42d5c4 authored by Tim Niemeyer's avatar Tim Niemeyer Committed by Tobias Klaus
Browse files

fff-fastd: new package


Signed-off-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarTobias Klaus <tk+ff@meskal.net>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
parent 26779bee
No related branches found
No related tags found
No related merge requests found
*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
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))
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
sleep 3
sh /etc/fastdstart.sh
/usr/sbin/fastdstart
}
*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment