File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
board/funkey/rootfs-overlay/usr/local/sbin Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ function function_magnet_detected_ok {
4444 # # Kill scheduled shutdown
4545 pkill sched_shutdown
4646
47- # # Kill the funkey_prod_screen binary
48- killall -s USR1 " ${PROD_SCREEN_BIN} > /dev/null 2>&1
49-
5047 # # Write magnet_detected file
5148 if $test_failed ; then
5249 echo " 1" > $MAGNET_DETECTED_FILE
@@ -67,7 +64,7 @@ function function_magnet_detected_ko {
6764 echo " ERROR: Caught SIGUSR1 signal (magnet detected!)"
6865
6966 # # Kill the funkey_prod_screen binary
70- killall -s USR1 " ${PROD_SCREEN_BIN} > /dev/null 2>&1
67+ killall -s USR1 " ${PROD_SCREEN_BIN} " > /dev/null 2>&1
7168 sync
7269}
7370
@@ -223,16 +220,23 @@ function launch_tests_up_until_magnet {
223220 sync
224221
225222 # Catch SIGUSR1 events
226- trap function_magnet_detected_ok SIGUSR1
223+ # trap function_magnet_detected_ok SIGUSR1
227224
228225 # # Launch prod screen test magnet
229226 echo " TEST MAGNET:"
230227 sync
231228 $PROD_SCREEN_BIN MAGNET 2>&1
232229 res=" $? "
233230 echo " $res "
231+
232+ # # Register ourself back as the running FunKey task for receiving USR1
233+ # # signal for shutting down
234+ echo $$ > " /var/run/funkey.pid"
235+
236+ # check magnet test result
234237 if [[ " $res " == " 0" ]]; then
235238 echo " OK"
239+ function_magnet_detected_ok
236240 else
237241 echo " FAILED"
238242 test_failed=true
Original file line number Diff line number Diff line change 44#
55# ###############################################################################
66
7- PRODSCREENS_VERSION = FunKey-ProdScreens-FunKey-1.1.0
7+ PRODSCREENS_VERSION = FunKey-ProdScreens-FunKey-1.1.1
88PRODSCREENS_SITE_METHOD = git
99PRODSCREENS_SITE = https://github.com/FunKey-Project/FunKey-ProdScreens.git
1010PRODSCREENS_SITE_LICENSE = GPL-2.1+
You can’t perform that action at this time.
0 commit comments