From 3f6606b99cd38740d9347bb1dbbba2d1b83c9d69 Mon Sep 17 00:00:00 2001 From: Jason Hawks Date: Wed, 15 Nov 2023 20:33:56 -0500 Subject: [PATCH 1/3] Tiny skidmarks! --- luasrc/model/cbi/easymesh.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luasrc/model/cbi/easymesh.lua b/luasrc/model/cbi/easymesh.lua index 57a7153..5bcc2f7 100755 --- a/luasrc/model/cbi/easymesh.lua +++ b/luasrc/model/cbi/easymesh.lua @@ -228,9 +228,9 @@ btnAPMode:depends("role", "off") m.on_before_apply = function(self) local enabled = m:formvalue("cbid.easymesh.config.enabled") if enabled and enabled == "1" then - io.popen("/easymesh/easymesh.sh enable &") + luci.sys.call("/easymesh/easymesh.sh enable &") else - io.popen("/easymesh/easymesh.sh disable &") + luci.sys.call("/easymesh/easymesh.sh disable &") end end From 2ecc9f918381dcb555dc92fa6f05020e56d8abb2 Mon Sep 17 00:00:00 2001 From: Jason Hawks Date: Wed, 15 Nov 2023 20:44:21 -0500 Subject: [PATCH 2/3] It is the tiniest things! --- root/easymesh/easymesh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/easymesh/easymesh.sh b/root/easymesh/easymesh.sh index 3db535d..fc2baa9 100755 --- a/root/easymesh/easymesh.sh +++ b/root/easymesh/easymesh.sh @@ -361,7 +361,7 @@ setup_mesh_radio() { # Check if ap_mode_enabled is enabled, if so add private_router_batman to the network # otherwise just add lan - if [ "$(uci -q get easymesh.config.ap_mode_enabled)" = 1 ]; then + if [ "$(uci -q get easymesh.config.ap_mode_enabled)" = 0 ]; then uci set wireless.wifinet$RADIO_NUM.network='lan' else uci set wireless.wifinet$RADIO_NUM.network='lan private_router_batman' From 1ccd9c9e24cf16da22b55ddcdeacc3982b030fcd Mon Sep 17 00:00:00 2001 From: Jason Hawks Date: Wed, 15 Nov 2023 20:45:01 -0500 Subject: [PATCH 3/3] One to grow on --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 542b099..9394995 100755 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=LuCI Support for easymesh LUCI_DEPENDS:= +kmod-cfg80211 +batctl-default +kmod-batman-adv +dawn +bash -PKG_VERSION:=2.8.8 +PKG_VERSION:=2.8.9 include $(TOPDIR)/feeds/luci/luci.mk