Initial commit of files
This commit is contained in:
5
sbin-scripts/can-down
Executable file
5
sbin-scripts/can-down
Executable 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
11
sbin-scripts/can-up
Executable 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
8
sbin-scripts/cnomicon-setup
Executable 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
3
sbin-scripts/vcan-down
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
ifconfig vcan0 down 2> /dev/null
|
||||
8
sbin-scripts/vcan-up
Executable file
8
sbin-scripts/vcan-up
Executable 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
|
||||
Reference in New Issue
Block a user