Initial commit of files
This commit is contained in:
12
bin-scripts/can-log-stop
Executable file
12
bin-scripts/can-log-stop
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# log file name based on time
|
||||
PIDDIR=.
|
||||
PIDFILE=$PIDDIR/can-log.pid
|
||||
|
||||
# kill if already running (restart)
|
||||
if [ -f $PIDFILE ]; then
|
||||
pkill -F $PIDFILE
|
||||
echo "CANdump logging stopped"
|
||||
rm -f $PIDFILE
|
||||
fi
|
||||
Reference in New Issue
Block a user