summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@t-online.de>2012-07-06 00:41:29 +0200
committerReinhard Arlt <reinhard.arlt@t-online.de>2012-07-06 00:41:29 +0200
commit3125549f34afdf9f498abee84321756bb00ae107 (patch)
tree725e548269aa173f27cd06c11b46d60618388639 /www
parent98fecf7fe0464c50af528e00d7819fb51087df96 (diff)
downloadgpsd-3125549f34afdf9f498abee84321756bb00ae107.tar.gz
Add slcan support to cansetup.
Diffstat (limited to 'www')
-rwxr-xr-xwww/cansetup6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/cansetup b/www/cansetup
index 134f3eb2..8d1b62fe 100755
--- a/www/cansetup
+++ b/www/cansetup
@@ -20,6 +20,12 @@ vcan)
modprobe vcan;
ip link add type vcan;
ip link set vcan0 up;;
+slcan)
+ device=${2:-/dev/ttyUSB0}
+ modprobe slcan;
+ slcan_attach -f -s5 -o $device;
+ slcand `basename $device`;
+ ip link set slcan0 up;;
*)
echo "cansetup: invalid CAN interface $1"
exit 1