#!/bin/bash
if  [ -e /System/Library/Extensions/IONetworkingFamily.kext/Contents/Plugins/AppleYukon2.kext/Contents/Info.plist ]
then
    if grep GE1000 /System/Library/Extensions/IONetworkingFamily.kext/Contents/Plugins/AppleYukon2.kext/Contents/Info.plist
    then
	"$1"/Contents/Resources/Scripts/unpatchInfo /System/Library/Extensions/IONetworkingFamily.kext/Contents/Plugins/AppleYukon2.kext/Contents/Info.plist\
	> /tmp/Info.plist
	cp /tmp/Info.plist /System/Library/Extensions/IONetworkingFamily.kext/Contents/Plugins/AppleYukon2.kext/Contents/Info.plist
	rm /tmp/Info.plist
	touch /System/Library/Extensions
	exit 0
    else
	echo "no patch found in Yukon2 driver"
	exit 1
    fi
else
	echo "unable to find AppleYukon2 driver to unpatch"
	exit 1
fi

