mir3c/squashfs-root/sbin/killupdateled

13 lines
193 B
Bash
Executable File

#!/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