From 9bd78b4a1df712818a68487d7a8e573090f5d785 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Mon, 16 Oct 2023 15:16:51 +0200 Subject: [PATCH] postinst: Define button action after install I've seen this in /etc/rc.button/switch --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 49dd968..5acc3cf 100644 --- a/Makefile +++ b/Makefile @@ -84,14 +84,12 @@ endef define Package/blue-merle/postinst #!/bin/sh - uci set glconfig.switch_button='service' - uci set glconfig.switch_button.enable='1' - uci set glconfig.switch_button.function='sim' - uci commit glconfig + uci set switch-button.@main[0].func='sim' + uci commit switch-button endef define Package/blue-merle/postrm #!/bin/sh - uci set glconfig.switch_button.function='tor' + uci set switch-button.@main[0].func='tor' endef $(eval $(call BuildPackage,$(PKG_NAME)))