[3/9] fff-fastd: new package

Submitted by Tim Niemeyer on March 15, 2016, 6:31 a.m.

Details

Message ID 1458023493-29584-4-git-send-email-tim@tn-x.org
State Superseded, archived
Headers show

Commit Message

Tim Niemeyer March 15, 2016, 6:31 a.m.
Signed-off-by: Tim Niemeyer <tim@tn-x.org>
---

 .../root_file_system/usr/lib/micron.d/default      |  1 -
 src/packages/fff/fff-fastd/Makefile                | 45 ++++++++++++++++++++++
 .../files}/etc/hotplug.d/iface/50-fastdstart       |  0
 .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd |  1 +
 .../fff/fff-fastd/files/usr/sbin/fastdstart        |  4 +-
 5 files changed, 49 insertions(+), 2 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 (100%)
 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%)

Patch hide | download patch | download mbox

diff --git a/bsp/default/root_file_system/usr/lib/micron.d/default b/bsp/default/root_file_system/usr/lib/micron.d/default
deleted file mode 100644
index a5cebb0..0000000
--- a/bsp/default/root_file_system/usr/lib/micron.d/default
+++ /dev/null
@@ -1 +0,0 @@ 
-*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
diff --git a/src/packages/fff/fff-fastd/Makefile b/src/packages/fff/fff-fastd/Makefile
new file mode 100644
index 0000000..26565e1
--- /dev/null
+++ b/src/packages/fff/fff-fastd/Makefile
@@ -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
+    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-batman-adv-legacy/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))
diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart b/src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
similarity index 100%
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
diff --git a/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
new file mode 100644
index 0000000..b0022e8
--- /dev/null
+++ b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
@@ -0,0 +1 @@ 
+*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl b/src/packages/fff/fff-fastd/files/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
index 5bb5165..611a3f8 100755
--- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
+++ b/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

Comments

Steffen Pankratz March 16, 2016, 9:02 p.m.
On Tue, 15 Mar 2016 07:31:27 +0100
Tim Niemeyer <tim@tn-x.org> wrote:

Hi Tim

Anmerkungen 'inline'.


> Signed-off-by: Tim Niemeyer <tim@tn-x.org>
> ---
> 
>  .../root_file_system/usr/lib/micron.d/default      |  1 -
>  src/packages/fff/fff-fastd/Makefile                | 45 ++++++++++++++++++++++
>  .../files}/etc/hotplug.d/iface/50-fastdstart       |  0
>  .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd |  1 +
>  .../fff/fff-fastd/files/usr/sbin/fastdstart        |  4 +-
>  5 files changed, 49 insertions(+), 2 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 (100%)
>  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%)
> 
> diff --git a/bsp/default/root_file_system/usr/lib/micron.d/default b/bsp/default/root_file_system/usr/lib/micron.d/default
> deleted file mode 100644
> index a5cebb0..0000000
> --- a/bsp/default/root_file_system/usr/lib/micron.d/default
> +++ /dev/null
> @@ -1 +0,0 @@
> -*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
> diff --git a/src/packages/fff/fff-fastd/Makefile b/src/packages/fff/fff-fastd/Makefile
> new file mode 100644
> index 0000000..26565e1
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/Makefile
> @@ -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
> +    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

Ich habe nicht geschaut, ob es eine Abhaengigkeit zu den Busybox-Features gibt.
Wieso braucht Fastd diese Busybox-Features?


Aktuell haben wir in unseren OpenWrt Configs:

CONFIG_FASTD_ENABLE_CIPHER_NULL=y
CONFIG_FASTD_ENABLE_MAC_UHASH=y
CONFIG_FASTD_ENABLE_METHOD_COMPOSED_UMAC=y
CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC=y
CONFIG_FASTD_ENABLE_METHOD_NULL=y
CONFIG_FASTD_WITH_STATUS_SOCKET=y

Wieso sind einige der Features davon raus geflogen?


> +define Package/fff-batman-adv-legacy/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))
> diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart b/src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
> similarity index 100%
> 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
> diff --git a/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> new file mode 100644
> index 0000000..b0022e8
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> @@ -0,0 +1 @@
> +*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
> diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl b/src/packages/fff/fff-fastd/files/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
> index 5bb5165..611a3f8 100755
> --- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> +++ b/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
> -- 
> 2.1.4


Gruss
-Steffen
Tobias Klaus March 20, 2016, 10:57 p.m.
Hey Tim,

sollten wir das Paket vielleicht "Freifunk-Franken fastd configuration script" 
nennen? "Freifunk-Franken fastd" hört sich so nach fork an.
 
In den umbenannten Dateien sind noch ein paar whitespaces zu viel. aber das 
ist nicht Problem dieses Patches.

Grüße
Tobias

On Dienstag, 15. März 2016 07:31:27 CET Tim Niemeyer wrote:
> Signed-off-by: Tim Niemeyer <tim@tn-x.org>
> ---
> 
>  .../root_file_system/usr/lib/micron.d/default      |  1 -
>  src/packages/fff/fff-fastd/Makefile                | 45
> ++++++++++++++++++++++ .../files}/etc/hotplug.d/iface/50-fastdstart       |
>  0
>  .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd |  1 +
>  .../fff/fff-fastd/files/usr/sbin/fastdstart        |  4 +-
>  5 files changed, 49 insertions(+), 2 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 (100%)
> 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%)
> 
> diff --git a/bsp/default/root_file_system/usr/lib/micron.d/default
> b/bsp/default/root_file_system/usr/lib/micron.d/default deleted file mode
> 100644
> index a5cebb0..0000000
> --- a/bsp/default/root_file_system/usr/lib/micron.d/default
> +++ /dev/null
> @@ -1 +0,0 @@
> -*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
> diff --git a/src/packages/fff/fff-fastd/Makefile
> b/src/packages/fff/fff-fastd/Makefile new file mode 100644
> index 0000000..26565e1
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/Makefile
> @@ -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
> +    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-batman-adv-legacy/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))
> diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart
> b/src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
> similarity index 100%
> 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
> diff --git a/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd new file mode
> 100644
> index 0000000..b0022e8
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> @@ -0,0 +1 @@
> +*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
> diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> b/src/packages/fff/fff-fastd/files/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
> index 5bb5165..611a3f8 100755
> --- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> +++ b/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
Christian Dresel April 5, 2016, 1:47 a.m.
hi

ich hab das ganze mal durchgebaut und ich hab hier ein kleines "Problem"
eher eine Frage bzw eine Sache die für mich nicht ganz schlüssig ist,
siehe Inline

Am 15.03.2016 um 07:31 schrieb Tim Niemeyer:
> Signed-off-by: Tim Niemeyer <tim@tn-x.org>
> ---
> 
>  .../root_file_system/usr/lib/micron.d/default      |  1 -
>  src/packages/fff/fff-fastd/Makefile                | 45 ++++++++++++++++++++++
>  .../files}/etc/hotplug.d/iface/50-fastdstart       |  0
>  .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd |  1 +
>  .../fff/fff-fastd/files/usr/sbin/fastdstart        |  4 +-
>  5 files changed, 49 insertions(+), 2 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 (100%)

wenn ich am fertig gebauten FW am Router in die File gucke, find ich
folgendes vor:

root@l2tptest:~# cat /etc/hotplug.d/iface/50-fastdstart
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
        sleep 3
        sh /etc/fastdstart.sh
}

(vorletzte Zeile ist die Interessante)

>  create mode 100644 src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd

nur hast du die fastdstart.sh hierher verschoben:

>  rename bsp/default/root_file_system/etc/fastdstart.sh.tpl => src/packages/fff/fff-fastd/files/usr/sbin/fastdstart (98%)

root@l2tptest:~# cat /etc/fastdstart.sh
cat: can't open '/etc/fastdstart.sh': No such file or directory


root@l2tptest:/usr/sbin# cat /usr/sbin/fastdstart
#!/bin/sh

SERVER="no"
#SERVERNAME="--servername--"

. /etc/community.cfg
usw...


ich weiß nicht genau für was diese 50-fastdstart gut ist aber richtig
sieht das irgendwie nicht aus oder?

Funktionieren tut fastd (und der ganze Rest) aber anscheinend trotzdem
problemlos.

mfg

Christian

> 
> diff --git a/bsp/default/root_file_system/usr/lib/micron.d/default b/bsp/default/root_file_system/usr/lib/micron.d/default
> deleted file mode 100644
> index a5cebb0..0000000
> --- a/bsp/default/root_file_system/usr/lib/micron.d/default
> +++ /dev/null
> @@ -1 +0,0 @@
> -*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
> diff --git a/src/packages/fff/fff-fastd/Makefile b/src/packages/fff/fff-fastd/Makefile
> new file mode 100644
> index 0000000..26565e1
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/Makefile
> @@ -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
> +    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-batman-adv-legacy/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))
> diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart b/src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
> similarity index 100%
> 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
> diff --git a/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> new file mode 100644
> index 0000000..b0022e8
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> @@ -0,0 +1 @@
> +*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
> diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl b/src/packages/fff/fff-fastd/files/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
> index 5bb5165..611a3f8 100755
> --- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> +++ b/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
>
Tim Niemeyer April 5, 2016, 5:34 a.m.
Am Dienstag, den 05.04.2016, 03:47 +0200 schrieb Christian Dresel:
> hi
> 
> ich hab das ganze mal durchgebaut und ich hab hier ein kleines "Problem"
> eher eine Frage bzw eine Sache die für mich nicht ganz schlüssig ist,
> siehe Inline
> 
> Am 15.03.2016 um 07:31 schrieb Tim Niemeyer:
> > Signed-off-by: Tim Niemeyer <tim@tn-x.org>
> > ---
> > 
> >  .../root_file_system/usr/lib/micron.d/default      |  1 -
> >  src/packages/fff/fff-fastd/Makefile                | 45 ++++++++++++++++++++++
> >  .../files}/etc/hotplug.d/iface/50-fastdstart       |  0
> >  .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd |  1 +
> >  .../fff/fff-fastd/files/usr/sbin/fastdstart        |  4 +-
> >  5 files changed, 49 insertions(+), 2 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 (100%)
> 
> wenn ich am fertig gebauten FW am Router in die File gucke, find ich
> folgendes vor:
> 
> root@l2tptest:~# cat /etc/hotplug.d/iface/50-fastdstart
> #!/bin/sh
> [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
>         sleep 3
>         sh /etc/fastdstart.sh
> }
> 
> (vorletzte Zeile ist die Interessante)
Good catch. V3 ist unterwegs.

Danke!

Tim

> 
> >  create mode 100644 src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> 
> nur hast du die fastdstart.sh hierher verschoben:
> 
> >  rename bsp/default/root_file_system/etc/fastdstart.sh.tpl => src/packages/fff/fff-fastd/files/usr/sbin/fastdstart (98%)
> 
> root@l2tptest:~# cat /etc/fastdstart.sh
> cat: can't open '/etc/fastdstart.sh': No such file or directory
> 
> 
> root@l2tptest:/usr/sbin# cat /usr/sbin/fastdstart
> #!/bin/sh
> 
> SERVER="no"
> #SERVERNAME="--servername--"
> 
> . /etc/community.cfg
> usw...
> 
> 
> ich weiß nicht genau für was diese 50-fastdstart gut ist aber richtig
> sieht das irgendwie nicht aus oder?
> 
> Funktionieren tut fastd (und der ganze Rest) aber anscheinend trotzdem
> problemlos.
> 
> mfg
> 
> Christian
> 
> > 
> > diff --git a/bsp/default/root_file_system/usr/lib/micron.d/default b/bsp/default/root_file_system/usr/lib/micron.d/default
> > deleted file mode 100644
> > index a5cebb0..0000000
> > --- a/bsp/default/root_file_system/usr/lib/micron.d/default
> > +++ /dev/null
> > @@ -1 +0,0 @@
> > -*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
> > diff --git a/src/packages/fff/fff-fastd/Makefile b/src/packages/fff/fff-fastd/Makefile
> > new file mode 100644
> > index 0000000..26565e1
> > --- /dev/null
> > +++ b/src/packages/fff/fff-fastd/Makefile
> > @@ -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
> > +    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-batman-adv-legacy/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))
> > diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart b/src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
> > similarity index 100%
> > 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
> > diff --git a/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> > new file mode 100644
> > index 0000000..b0022e8
> > --- /dev/null
> > +++ b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> > @@ -0,0 +1 @@
> > +*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
> > diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl b/src/packages/fff/fff-fastd/files/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
> > index 5bb5165..611a3f8 100755
> > --- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> > +++ b/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
> > 
> 
> 
> -- 
> franken-dev mailing list
> franken-dev@freifunk.net
> http://lists.freifunk.net/mailman/listinfo/franken-dev-freifunk.net