deleted file mode 100644
@@ -1 +0,0 @@
-*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
new file mode 100644
@@ -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))
similarity index 76%
rename from bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart
rename to src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
@@ -1,5 +1,5 @@
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
sleep 3
- sh /etc/fastdstart.sh
+ /usr/sbin/fastdstart
}
new file mode 100644
@@ -0,0 +1 @@
+*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
similarity index 98%
rename from bsp/default/root_file_system/etc/fastdstart.sh.tpl
rename to src/packages/fff/fff-fastd/files/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
Signed-off-by: Tim Niemeyer <tim@tn-x.org> --- Changes in v4: -fix description Changes in v3: - fix hotplug path Changes in v2: - change fff-fastd name to ".. configuration script" .../root_file_system/usr/lib/micron.d/default | 1 - src/packages/fff/fff-fastd/Makefile | 45 ++++++++++++++++++++++ .../files}/etc/hotplug.d/iface/50-fastdstart | 2 +- .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd | 1 + .../fff/fff-fastd/files/usr/sbin/fastdstart | 4 +- 5 files changed, 50 insertions(+), 3 deletions(-) delete mode 100644 bsp/default/root_file_system/usr/lib/micron.d/default create mode 100644 src/packages/fff/fff-fastd/Makefile rename {bsp/default/root_file_system => src/packages/fff/fff-fastd/files}/etc/hotplug.d/iface/50-fastdstart (76%) create mode 100644 src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd rename bsp/default/root_file_system/etc/fastdstart.sh.tpl => src/packages/fff/fff-fastd/files/usr/sbin/fastdstart (98%)