-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add information for adding the rxtx library to OS X Snow Leopard
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
# 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 | ||
# Adapted for RXTX 2.1-7 by LA3HM 30 Jul 2006 | ||
# Replaced 'niutil' with 'dscl' for (Snow) Leopard | ||
|
||
# You may need to run the following after: | ||
# sudo dscl . -append /Groups/uucp GroupMembership <your usename> | ||
|
||
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 dscl . -read / /groups/_uucp users | grep $curruser > /dev/null` ] | ||
then | ||
sudo dscl . -append /groups/_uucp GroupMembership $curruser | ||
fi |
Binary file not shown.