Skip to content
Snippets Groups Projects
Commit 7e68c7aa authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

remove the package fastdreg

parent a76bad59
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=ffnw-fastdreg
PKG_VERSION:=1
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/ffnw-fastdreg
SECTION:=fastd
CATEGORY:=Freifunk Nordwest
TITLE:=Adds script which registers fastd-key
DEPENDS:=+gluon-mesh-vpn-fastd
endef
define Package/ffnw-fastdreg/description
Adds script which registers fastd-key
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/ffnw-fastdreg/install
$(CP) ./files/* $(1) /
endef
$(eval $(call BuildPackage,ffnw-fastdreg))
package fastdreg
config fastdreg ffnw
option regdone 0
#!/bin/sh
. /lib/functions.sh
keysrv="http://vpn01.freifunk-ol.de"
hostname=$(uci get system.@system[0].hostname)
pubkey=$(/etc/init.d/fastd show_key mesh_vpn)
regdone=$(uci get fastdreg.ffnw.regdone)
if [ "$regdone" -ne "1" ]; then
reg=$(wget -T15 "$keysrv/reg.php?name=$hostname&key=$pubkey" -O -)
if [ "$reg" == "regdone" ]; then
uci set fastdreg.ffnw.regdone=1
uci commit
fi
fi
* * * * * /lib/ffnw/fastdreg/fastdreg.sh
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