summaryrefslogtreecommitdiff
path: root/roombacomm-client/lib/rxtx/macosx_setup.command
diff options
context:
space:
mode:
authorIdo Hadanny <ido.hadanny@gmail.com>2011-09-22 21:30:13 +0300
committerIdo Hadanny <ido.hadanny@gmail.com>2011-09-22 21:30:13 +0300
commit53b947df484159f5934898ba6c0aa69a9c869007 (patch)
tree189d5903a67765c390de8f1e3423e6b80cde57d1 /roombacomm-client/lib/rxtx/macosx_setup.command
parent654ca6d59e99b5e72b05dfb917bc5888c4ba6b1b (diff)
added stuff
Diffstat (limited to 'roombacomm-client/lib/rxtx/macosx_setup.command')
-rw-r--r--roombacomm-client/lib/rxtx/macosx_setup.command54
1 files changed, 54 insertions, 0 deletions
diff --git a/roombacomm-client/lib/rxtx/macosx_setup.command b/roombacomm-client/lib/rxtx/macosx_setup.command
new file mode 100644
index 0000000..f6d9c9b
--- /dev/null
+++ b/roombacomm-client/lib/rxtx/macosx_setup.command
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# modified to change from /var/spool/uucp to /var/lock for rxtx 2.1_7r2
+# for processing release 0112, 13 april 2006 [fry]
+
+# originally fixperm.sh from rxtx-2.1_6/contrib
+# with a couple additions from pathsetup.command from fink [fry]
+
+# A script to fix permissions for lock files on Mac OS X
+# Contributed by Dmitry Markman <dimitry.markman@verizon.net>
+# Fri Aug 23 15:46:46 MDT 2002
+
+echo ""
+echo ""
+echo "This command will take care of a couple system things"
+echo "so that you can properly use the serial port to communicate"
+echo "between hardware devices and processing."
+echo ""
+echo "If there are actually changes that need to be made, then"
+echo "enter your password when prompted. The command uses sudo,"
+echo "and you'll need to have administrator access."
+echo ""
+
+echo -n "Do you want to continue? [Y/n] "
+read answer
+answer=`echo $answer | sed 's/^[yY].*$/y/'`
+if [ -z "$answer" -o "x$answer" = "xy" ]; then
+ curruser=`sudo id -p | grep 'login' | sed 's/login.//'`
+
+ if [ ! -d /var/lock ]
+ then
+ sudo mkdir /var/lock
+ fi
+
+ sudo chgrp uucp /var/lock
+ sudo chmod 775 /var/lock
+
+ if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ]
+ then
+ sudo niutil -mergeprop / /groups/uucp users $curruser
+ fi
+
+ echo "Finished making changes, you should be all set"
+else
+ echo "Ok, nevermind then."
+fi
+
+echo ""
+echo ""
+echo " (All done... you can close this window now)"
+echo ""
+echo ""
+echo ""
+