Skip to content

Commit

Permalink
joymap.sh - kill SIGINT loadmap on second run
Browse files Browse the repository at this point in the history
  • Loading branch information
Apaczer committed Oct 24, 2023
1 parent 1f903c9 commit 704865b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion board/miyoo/main/apps/joymap/joymap.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
#!/bin/busybox sh
loadmap /mnt/joymap.map -d -b

if pgrep "loadmap" 2> /dev/null; then
killall -2 loadmap
else
loadmap /mnt/joymap.map -d -b
fi

0 comments on commit 704865b

Please sign in to comment.