Skip to content
This repository
Browse code

improved installation script

  • Loading branch information...
commit 6e6d29bc11551dc9ed4c98f4dd984a7c51b9cc8a 1 parent 1274fef
Daniel Myers authored

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. +9 3 install
12 install
@@ -7,6 +7,12 @@ python webmote-env.py webmote-env
7 7 rm webmote-env.py
8 8
9 9 cp -a utils/* .
10   -echo "Webmote needs your permission to communicate with USB devices"
11   -sudo usermod -a -G tty $(logname)
12   -sudo usermod -a -G dialout $(logname)
  10 +
  11 +if [[ `groups $(logname)` != *tty* ]]
  12 +then
  13 + echo "Webmote needs your permission to communicate with USB devices"
  14 + sudo usermod -a -G tty $(logname)
  15 + sudo usermod -a -G dialout $(logname)
  16 + echo "You will need to logout and log back in to communicate with USB devices via webmote."
  17 +fi
  18 +

0 comments on commit 6e6d29b

Please sign in to comment.
Something went wrong with that request. Please try again.