diff --git a/src/packages/fff/fff-layer3/Makefile b/src/packages/fff/fff-layer3/Makefile index 8bbff5e5..0608fc85 100644 --- a/src/packages/fff/fff-layer3/Makefile +++ b/src/packages/fff/fff-layer3/Makefile @@ -19,6 +19,7 @@ define Package/fff-layer3 +fff-layer3-config \ +fff-network \ +fff-ra \ + +fff-web-l3config \ +fff-wireguard \ +arptables \ +bmon \ diff --git a/src/packages/fff/fff-web-l3config/Makefile b/src/packages/fff/fff-web-l3config/Makefile new file mode 100644 index 00000000..766c6bae --- /dev/null +++ b/src/packages/fff/fff-web-l3config/Makefile @@ -0,0 +1,30 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-web-l3config +PKG_RELEASE:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-web-l3config + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken layer3 config webui + URL:=http://www.freifunk-franken.de + DEPENDS:= \ + +fff-layer3-config \ + +fff-web-ui +endef + +define Package/fff-web-l3config/description + Configure a layer3 router via a web UI +endef + +define Build/Compile + # nothing +endef + +define Package/fff-web-l3config/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,fff-web-l3config)) diff --git a/src/packages/fff/fff-web-l3config/files/www/menu/ssl/15-l3settings b/src/packages/fff/fff-web-l3config/files/www/menu/ssl/15-l3settings new file mode 100644 index 00000000..4a4c746d --- /dev/null +++ b/src/packages/fff/fff-web-l3config/files/www/menu/ssl/15-l3settings @@ -0,0 +1 @@ +l3settings,Layer 3 diff --git a/src/packages/fff/fff-web-l3config/files/www/ssl/cgi-bin/l3settings.html b/src/packages/fff/fff-web-l3config/files/www/ssl/cgi-bin/l3settings.html new file mode 100755 index 00000000..091fcd8a --- /dev/null +++ b/src/packages/fff/fff-web-l3config/files/www/ssl/cgi-bin/l3settings.html @@ -0,0 +1,88 @@ +#!/usr/bin/haserl + +<%in /www/include/header %> +<%in /www/include/helpers %> +<% show_msg %> + +
+ +<% +# read +l3config=$(cat /etc/config/gateway) +%> + +