mir3c/squashfs-root/sbin/killupdateled

13 lines
193 B
Plaintext
Raw Permalink Normal View History

2018-05-25 08:49:31 +00:00
#!/bin/sh
pid_file="/tmp/pid_updateledfliker"
if [ -f $pid_file ]; then
exist_pid=`cat $pid_file`
if [ -n $exist_pid ]; then
kill $exist_pid 2>/dev/null
fi
fi
#turn on blue led
gpio 3 0