mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-18 18:02:40 +01:00
register assy tests PID after LOCK checked otherwise launcher PID is always rewritten after an ssh login
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
## Register ourself as the running FunKey task for receiving USR1
|
||||
## signal for shutting down
|
||||
echo $$ > "/var/run/funkey.pid"
|
||||
|
||||
## Check if tests must be run
|
||||
RUN_ENV_VAR=$(fw_printenv -n assembly_tests 2>/dev/null)
|
||||
if [ "x${RUN_ENV_VAR}" != "x1" ]; then
|
||||
@@ -20,6 +16,10 @@ if [ -f ${LOCK_FILE} ]; then
|
||||
fi
|
||||
touch ${LOCK_FILE}
|
||||
|
||||
## Register ourself as the running FunKey task for receiving USR1
|
||||
## signal for shutting down
|
||||
echo $$ > "/var/run/funkey.pid"
|
||||
|
||||
## Binaries
|
||||
PROD_SCREEN_BIN="/usr/local/sbin/funkey_prod_screens"
|
||||
GET_PROC_UID="/usr/local/sbin/get_sid"
|
||||
|
||||
Reference in New Issue
Block a user