Skip to content

Commit

Permalink
Adding osx one time setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
dherbst committed Dec 13, 2010
1 parent e4c0292 commit 0a5b11e
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Expand Up @@ -4,4 +4,15 @@ LDFLAGS += `pkg-config libhid --libs`
wmr100: wmr100.c

clean:
-rm wmr100
-rm wmr100


setup_osx:
sudo cp -r osx/wmr100.kext /System/Library/Extensions/wmr100.kext
sudo kextload -vt /System/Library/Extensions/wmr100.kext
sudo touch /System/Library/Extensions

unsetup_osx:
sudo rm -r -i /System/Library/Extensions/wmr100.kext
sudo touch /System/Library/Extensions
echo Please reboot for changes to take effect.
7 changes: 7 additions & 0 deletions README.markdown
Expand Up @@ -37,6 +37,13 @@ Run 'make'.

To install, copy wmr100 to your path.

*One time install for osx*
To keep the default HIDManager from taking the wmr100, run this once: `make setup_osx`
If you want to use different software to read the wmr100 device, you should undo this by running
`make unsetup_osx` and then reboot so that the HIDManager will take control of the device again.



Usage
-----

Expand Down
51 changes: 51 additions & 0 deletions osx/wmr100.kext/Contents/Info.plist
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOUSBFamily</key>
<string>1.8</string>
<key>com.apple.kernel.libkern</key>
<string>6.0</string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleGetInfoString</key>
<string>WMR100a USB Device</string>
<key>CFBundleIdentifier</key>
<string>com.oregonscientific.wmr100a</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>wmr100a USB Device</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>IOKitPersonalities</key>
<dict>
<key>Device Driver</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.kernel.iokit</string>
<key>IOClass</key>
<string>IOService</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>idProduct</key>
<integer>51713</integer>
<key>idVendor</key>
<integer>4062</integer>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>0</integer>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Local-Root</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions osx/wmr100.kext/Contents/version.plist
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildVersion</key>
<string>1253</string>
<key>CFBundleShortVersionString</key>
<string>1.5.0</string>
<key>CFBundleVersion</key>
<string>1.5.0</string>
<key>ProjectName</key>
<string>wmr100</string>
<key>SourceVersion</key>
<string>1500003</string>
</dict>
</plist>

0 comments on commit 0a5b11e

Please sign in to comment.