Big restructuring by moving to python

This commit is contained in:
budtmo
2023-05-09 19:34:44 +02:00
parent abcdf3f4d1
commit 6767970307
448 changed files with 2493 additions and 5679 deletions
+2
View File
@@ -0,0 +1,2 @@
#!/system/bin/sh
setprop persist.sys.usb.config adb
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
function shuwdown(){
echo "SIGTERM is received! Clean-up will be executed if needed!"
process_id=$(pgrep -f "start device")
kill ${process_id}
sleep 10
if [[ ${DEVICE_TYPE} == "geny_aws" ]]; then
# Give time to execute tear_down method
sleep 180
fi
}
trap shuwdown SIGTERM
SUPERVISORD_CONFIG_PATH="${APP_PATH}/mixins/configs/process"
if [[ ${DEVICE_TYPE} == "geny_"* ]]; then
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \
wait
elif [[ ${EMULATOR_HEADLESS} == true ]]; then
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-port.conf & \
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \
wait
else
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-screen.conf & \
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-port.conf & \
/usr/bin/supervisord --configuration ${SUPERVISORD_CONFIG_PATH}/supervisord-base.conf & \
wait
fi