Initial commit of files

This commit is contained in:
2021-01-22 10:16:20 -05:00
parent 32d165ec8f
commit ed92211680
534 changed files with 68563 additions and 19 deletions

5
sbin-scripts/can-down Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
killall candump 2> /dev/null
ifconfig can0 down 2> /dev/null

11
sbin-scripts/can-up Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# PCAN
echo "can0"
#modprobe pcan
ifconfig can0 down
ip link set can0 up type can bitrate 500000
ip link set can0 txqueuelen 1000
ip link set up can0
ifconfig can0

8
sbin-scripts/cnomicon-setup Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
for i in cnomicon
do
mkdir -p /var/run/$i /var/log/$i
chmod a+rwx /var/run/$i /var/log/$i
done

3
sbin-scripts/vcan-down Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ifconfig vcan0 down 2> /dev/null

8
sbin-scripts/vcan-up Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# VCAN
echo "vcan0"
modprobe vcan
ip link add dev vcan0 type vcan
ip link set up vcan0
ifconfig vcan0