From c5e29845e4c9290c3511ac57955209ad5a522716 Mon Sep 17 00:00:00 2001 From: Jason Hawks Date: Fri, 17 Nov 2023 02:14:46 -0500 Subject: [PATCH] Testing other method --- Makefile | 17 +---------------- root/etc/uci-defaults/luci-easymesh | 11 +++++++++++ 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index bdd2d74..6835d86 100755 --- a/Makefile +++ b/Makefile @@ -6,28 +6,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-easymesh -PKG_VERSION:=2.8.14 +PKG_VERSION:=2.8.15 PKG_RELEASE:=$(AUTORELEASE) PKG_MAINTAINER:=Jason Hawks LUCI_TITLE:=LuCI Support for easymesh LUCI_DEPENDS:= +kmod-cfg80211 +batctl-default +kmod-batman-adv +dawn +bash -define Package/luci-app-easymesh/postinst -#!/bin/sh - -if [ ! -f /etc/config/easymesh ]; then - echo "Creating /etc/config/easymesh" - cat < /etc/config/easymesh -config easymesh 'config' - option enabled '0' -EOF - reload_config -else - echo "/etc/config/easymesh exists, skipping creation" -fi -endef - include $(TOPDIR)/feeds/luci/luci.mk # call BuildPackage - OpenWrt buildroot signature diff --git a/root/etc/uci-defaults/luci-easymesh b/root/etc/uci-defaults/luci-easymesh index 92b0774..d2185d9 100755 --- a/root/etc/uci-defaults/luci-easymesh +++ b/root/etc/uci-defaults/luci-easymesh @@ -1,5 +1,16 @@ #!/bin/sh +if [ ! -f /etc/config/easymesh ]; then + echo "Creating /etc/config/easymesh" + cat < /etc/config/easymesh +config easymesh 'config' + option enabled '0' +EOF + reload_config +else + echo "/etc/config/easymesh exists, skipping creation" +fi + uci -q batch <<-EOF >/dev/null delete ucitrack.@easymesh[-1] add ucitrack easymesh