FunKey-OS/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/record_pid

13 lines
198 B
Bash
Executable File

#!/bin/sh
# Uncomment the following line to get debug info
#set -x
# Check args
if [ ${#} -ne 1 ]; then
echo "Usage: $(basename ${0}) pid"
exit 1
fi
echo ${1} > /var/run/funkey.pid
exit 0