From e33c8143ab2d3e3dff43a8e1f0d70bbae5a44f5b Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Sun, 5 Nov 2023 13:41:06 +0100 Subject: [PATCH] ffac-eol-ssid: fix missing eol-ssid uci subsystem --- ffac-eol-ssid/Makefile | 4 ++++ ffac-eol-ssid/files/etc/config/eol-ssid | 2 ++ ffac-eol-ssid/luasrc/lib/gluon/upgrade/950-eol-ssid-nagger | 4 ---- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 ffac-eol-ssid/files/etc/config/eol-ssid diff --git a/ffac-eol-ssid/Makefile b/ffac-eol-ssid/Makefile index 508b0014..6dda6b7b 100644 --- a/ffac-eol-ssid/Makefile +++ b/ffac-eol-ssid/Makefile @@ -12,4 +12,8 @@ define Package/$(PKG_NAME) DEPENDS:=+gluon-core endef +define Package/ffac-eol-ssid/conffiles +/etc/config/eol-ssid +endef + $(eval $(call BuildPackageGluon,ffac-eol-ssid)) diff --git a/ffac-eol-ssid/files/etc/config/eol-ssid b/ffac-eol-ssid/files/etc/config/eol-ssid new file mode 100644 index 00000000..20767ba5 --- /dev/null +++ b/ffac-eol-ssid/files/etc/config/eol-ssid @@ -0,0 +1,2 @@ +config settings + option disabled '0' diff --git a/ffac-eol-ssid/luasrc/lib/gluon/upgrade/950-eol-ssid-nagger b/ffac-eol-ssid/luasrc/lib/gluon/upgrade/950-eol-ssid-nagger index fccff643..20ae8717 100755 --- a/ffac-eol-ssid/luasrc/lib/gluon/upgrade/950-eol-ssid-nagger +++ b/ffac-eol-ssid/luasrc/lib/gluon/upgrade/950-eol-ssid-nagger @@ -12,10 +12,6 @@ end local eol_wifi_ssid = site.eol_wifi_ssid() if not uci:get_bool('eol-wifi', 'ssid', 'disabled') then - uci:section('eol-wifi', 'ssid', 'ssid', { - disabled = false, - }) - uci:save('eol-wifi') -- Change client radio ssid uci:set('wireless', 'client_radio0', 'ssid', eol_wifi_ssid) uci:save('wireless')