Add action.sh for user to manually trigger modules' functionality from app

This commit is contained in:
LoveSy
2024-09-01 23:08:38 +08:00
committed by John Wu
parent a9f8c20703
commit fbebb6ac10
13 changed files with 363 additions and 1 deletions

View File

@ -189,6 +189,13 @@ printvar() {
eval echo $1=\$$1
}
run_action() {
local MODID="$1"
cd "/data/adb/modules/$MODID"
ASH_STANDALONE=1 sh ./action.sh
cd /
}
##########################
# Non-root util_functions
##########################