Browse files

improved installation script

  • Loading branch information...
1 parent 1274fef commit 6e6d29bc11551dc9ed4c98f4dd984a7c51b9cc8a @dandroid88 committed Nov 28, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 install
View
12 install
@@ -7,6 +7,12 @@ python webmote-env.py webmote-env
rm webmote-env.py
cp -a utils/* .
-echo "Webmote needs your permission to communicate with USB devices"
-sudo usermod -a -G tty $(logname)
-sudo usermod -a -G dialout $(logname)
+
+if [[ `groups $(logname)` != *tty* ]]
+then
+ echo "Webmote needs your permission to communicate with USB devices"
+ sudo usermod -a -G tty $(logname)
+ sudo usermod -a -G dialout $(logname)
+ echo "You will need to logout and log back in to communicate with USB devices via webmote."
+fi
+

0 comments on commit 6e6d29b

Please sign in to comment.