fff-hoods/fff-web: create link to hood file in fff-hoods

Submitted by Adrian Schmutzler on April 25, 2020, 9:27 p.m.

Details

Message ID 20200425212743.5144-1-freifunk@adrianschmutzler.de
State Accepted
Headers show

Commit Message

Adrian Schmutzler April 25, 2020, 9:27 p.m.
For the layer-3 firmware, we currently do not support a hood file
for automatically creating a mesh. However, the link for the
hood file is still created in fff-web.

Move this setup to fff-hoods, which is specific to the node firmware.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 src/packages/fff/fff-hoods/Makefile                          | 2 +-
 .../fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile     | 5 +++++
 src/packages/fff/fff-web/Makefile                            | 2 +-
 .../fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd         | 4 ----
 4 files changed, 7 insertions(+), 6 deletions(-)
 create mode 100644 src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-hoods/Makefile b/src/packages/fff/fff-hoods/Makefile
index e5680c22..f2cca3d0 100644
--- a/src/packages/fff/fff-hoods/Makefile
+++ b/src/packages/fff/fff-hoods/Makefile
@@ -1,7 +1,7 @@ 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fff-hoods
-PKG_RELEASE:=9
+PKG_RELEASE:=10
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 
diff --git a/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile b/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
new file mode 100644
index 00000000..a52646fa
--- /dev/null
+++ b/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
@@ -0,0 +1,5 @@ 
+. /lib/functions/fff/keyxchange
+
+ln -s "$hoodfilewww" /www/hood/keyxchangev2data
+
+exit 0
diff --git a/src/packages/fff/fff-web/Makefile b/src/packages/fff/fff-web/Makefile
index 3f16fded..c0783b7b 100644
--- a/src/packages/fff/fff-web/Makefile
+++ b/src/packages/fff/fff-web/Makefile
@@ -1,7 +1,7 @@ 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fff-web
-PKG_RELEASE:=10
+PKG_RELEASE:=11
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
 
diff --git a/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd b/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
index f3135370..fc26581b 100644
--- a/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
+++ b/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
@@ -1,7 +1,3 @@ 
-. /lib/functions/fff/keyxchange
-
-ln -s "$hoodfilewww" /www/hood/keyxchangev2data
-
 uci batch <<EOF
   delete uhttpd.main
   delete uhttpd.public

Comments

Fabian Blaese June 18, 2020, 10:18 a.m.
Der Link tut zwar nicht weh, wenn er da ist, aber so isses aufgeräumt.
Reviewed-by: Fabian Bläse <fabian@blaese.de>

On 25.04.20 23:27, Adrian Schmutzler wrote:
> For the layer-3 firmware, we currently do not support a hood file
> for automatically creating a mesh. However, the link for the
> hood file is still created in fff-web.
> 
> Move this setup to fff-hoods, which is specific to the node firmware.
> 
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> ---
>  src/packages/fff/fff-hoods/Makefile                          | 2 +-
>  .../fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile     | 5 +++++
>  src/packages/fff/fff-web/Makefile                            | 2 +-
>  .../fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd         | 4 ----
>  4 files changed, 7 insertions(+), 6 deletions(-)
>  create mode 100644 src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> 
> diff --git a/src/packages/fff/fff-hoods/Makefile b/src/packages/fff/fff-hoods/Makefile
> index e5680c22..f2cca3d0 100644
> --- a/src/packages/fff/fff-hoods/Makefile
> +++ b/src/packages/fff/fff-hoods/Makefile
> @@ -1,7 +1,7 @@
>  include $(TOPDIR)/rules.mk
>  
>  PKG_NAME:=fff-hoods
> -PKG_RELEASE:=9
> +PKG_RELEASE:=10
>  
>  PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
>  
> diff --git a/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile b/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> new file mode 100644
> index 00000000..a52646fa
> --- /dev/null
> +++ b/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> @@ -0,0 +1,5 @@
> +. /lib/functions/fff/keyxchange
> +
> +ln -s "$hoodfilewww" /www/hood/keyxchangev2data
> +
> +exit 0
> diff --git a/src/packages/fff/fff-web/Makefile b/src/packages/fff/fff-web/Makefile
> index 3f16fded..c0783b7b 100644
> --- a/src/packages/fff/fff-web/Makefile
> +++ b/src/packages/fff/fff-web/Makefile
> @@ -1,7 +1,7 @@
>  include $(TOPDIR)/rules.mk
>  
>  PKG_NAME:=fff-web
> -PKG_RELEASE:=10
> +PKG_RELEASE:=11
>  
>  PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
>  
> diff --git a/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd b/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> index f3135370..fc26581b 100644
> --- a/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> +++ b/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> @@ -1,7 +1,3 @@
> -. /lib/functions/fff/keyxchange
> -
> -ln -s "$hoodfilewww" /www/hood/keyxchangev2data
> -
>  uci batch <<EOF
>    delete uhttpd.main
>    delete uhttpd.public
>
Adrian Schmutzler June 18, 2020, 11:06 a.m.
Merged.

> -----Original Message-----
> From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf
> Of Adrian Schmutzler
> Sent: Samstag, 25. April 2020 23:28
> To: franken-dev@freifunk.net
> Subject: [PATCH] fff-hoods/fff-web: create link to hood file in fff-hoods
> 
> For the layer-3 firmware, we currently do not support a hood file for
> automatically creating a mesh. However, the link for the hood file is still
> created in fff-web.
> 
> Move this setup to fff-hoods, which is specific to the node firmware.
> 
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> ---
>  src/packages/fff/fff-hoods/Makefile                          | 2 +-
>  .../fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile     | 5 +++++
>  src/packages/fff/fff-web/Makefile                            | 2 +-
>  .../fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd         | 4 ----
>  4 files changed, 7 insertions(+), 6 deletions(-)  create mode 100644
> src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> 
> diff --git a/src/packages/fff/fff-hoods/Makefile b/src/packages/fff/fff-
> hoods/Makefile
> index e5680c22..f2cca3d0 100644
> --- a/src/packages/fff/fff-hoods/Makefile
> +++ b/src/packages/fff/fff-hoods/Makefile
> @@ -1,7 +1,7 @@
>  include $(TOPDIR)/rules.mk
> 
>  PKG_NAME:=fff-hoods
> -PKG_RELEASE:=9
> +PKG_RELEASE:=10
> 
>  PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
> 
> diff --git a/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> b/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> new file mode 100644
> index 00000000..a52646fa
> --- /dev/null
> +++ b/src/packages/fff/fff-hoods/files/etc/uci-defaults/93-fff-hoodfile
> @@ -0,0 +1,5 @@
> +. /lib/functions/fff/keyxchange
> +
> +ln -s "$hoodfilewww" /www/hood/keyxchangev2data
> +
> +exit 0
> diff --git a/src/packages/fff/fff-web/Makefile b/src/packages/fff/fff-
> web/Makefile
> index 3f16fded..c0783b7b 100644
> --- a/src/packages/fff/fff-web/Makefile
> +++ b/src/packages/fff/fff-web/Makefile
> @@ -1,7 +1,7 @@
>  include $(TOPDIR)/rules.mk
> 
>  PKG_NAME:=fff-web
> -PKG_RELEASE:=10
> +PKG_RELEASE:=11
> 
>  PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
> 
> diff --git a/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> b/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> index f3135370..fc26581b 100644
> --- a/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> +++ b/src/packages/fff/fff-web/files/etc/uci-defaults/93-fff-uhttpd
> @@ -1,7 +1,3 @@
> -. /lib/functions/fff/keyxchange
> -
> -ln -s "$hoodfilewww" /www/hood/keyxchangev2data
> -
>  uci batch <<EOF
>    delete uhttpd.main
>    delete uhttpd.public
> --
> 2.20.1