Skip to content

Commit 018c02e

Browse files
committed
Update init
1 parent 19ca2e2 commit 018c02e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

init

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ uninstall() {
5353
$REMOVE "$LAUNCHER_CONFIG_FILE"
5454
}
5555

56+
relase_backlight() {
57+
RC = $(lua /system/share/lua/5.1/tp_entry.lua sys_api.release_backlight)
58+
echo $RC
59+
}
60+
61+
lock_backlight() {
62+
RC = $(lua /system/share/lua/5.1/tp_entry.lua sys_api.lock_backlight)
63+
echo $RC
64+
}
65+
5666
# main
5767
if [ $# -lt 1 ]; then
5868
usage
@@ -71,6 +81,12 @@ case "$1" in
7181
config;;
7282
"uninstall" )
7383
uninstall;;
84+
"config" )
85+
config;;
86+
"release_backlight" )
87+
relase_backlight;;
88+
"lock_backlight" )
89+
lock_backlight;;
7490
* )
7591
usage ;;
7692
esac

0 commit comments

Comments
 (0)