diff options
author | Reinhard Arlt <reinhard.arlt@t-online.de> | 2012-07-05 01:27:05 +0200 |
---|---|---|
committer | Reinhard Arlt <reinhard.arlt@t-online.de> | 2012-07-05 01:27:05 +0200 |
commit | 98fecf7fe0464c50af528e00d7819fb51087df96 (patch) | |
tree | 541a3187e015e667cb7db0c39c43feb3ffb03d30 /www | |
parent | 7e8ac454e221e0f9e1b3b96c0815df9100381fda (diff) | |
download | gpsd-98fecf7fe0464c50af528e00d7819fb51087df96.tar.gz |
Cleanup of cansetup.
Diffstat (limited to 'www')
-rwxr-xr-x | www/cansetup | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/www/cansetup b/www/cansetup index e8970ff5..134f3eb2 100755 --- a/www/cansetup +++ b/www/cansetup @@ -8,18 +8,18 @@ case $candevice in plx_pci) # For the SJA1000 based PCI or PCI-Express CAN interface modprobe plx_pci; - ip link set can0 up; - ip link set can0 type can tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1;; + ip link set can0 type can tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1; + ip link set can0 up;; esd_usb2) # For an esd usb/2 CAN interface modprobe esd_usb2; - ip link set can0 up; - ip link set can0 type can tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1;; + ip link set can0 type can tq 250 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1; + ip link set can0 up;; vcan) # With this setup, CAN frames can be injected into vcan0 by a test modprobe vcan; ip link add type vcan; - ifconfig vcan0 up;; + ip link set vcan0 up;; *) echo "cansetup: invalid CAN interface $1" exit 1 |