mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
joymap.sh - kill SIGINT loadmap
on second run
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user