diff --git a/reset_can.sh b/reset_can.sh new file mode 100755 index 0000000..9640294 --- /dev/null +++ b/reset_can.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +sudo ip link set can0 down +sudo ip link set can0 type can bitrate 100000 sjw 128 +sudo ip link set can0 up +/usr/bin/candump -l -t A can0 & + + + +# Find and delete .log files older than one month +# +find . -type f -name "*.log" -mtime +30 -exec rm -f {} \; +