mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -05:00
postinst: Define button action after install
I've seen this in /etc/rc.button/switch
This commit is contained in:
parent
4a4b5a4e0b
commit
9bd78b4a1d
8
Makefile
8
Makefile
@ -84,14 +84,12 @@ endef
|
|||||||
|
|
||||||
define Package/blue-merle/postinst
|
define Package/blue-merle/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci set glconfig.switch_button='service'
|
uci set switch-button.@main[0].func='sim'
|
||||||
uci set glconfig.switch_button.enable='1'
|
uci commit switch-button
|
||||||
uci set glconfig.switch_button.function='sim'
|
|
||||||
uci commit glconfig
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/blue-merle/postrm
|
define Package/blue-merle/postrm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
uci set glconfig.switch_button.function='tor'
|
uci set switch-button.@main[0].func='tor'
|
||||||
endef
|
endef
|
||||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||||
|
Loading…
Reference in New Issue
Block a user