forked from fredemmott/Envy24HT
/
install.sh
41 lines (29 loc) · 1.23 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
if [ -x /usr/bin/sudo -a $UID -ne 0 ]; then
exec /usr/bin/sudo $0 $*
fi
sysctl -w debug.iokit=0x200000
echo "This will install the Envy24HT driver on your system.
Currently supported cards are:
Terratec Aureon 5.1 Sky
Terratec Aureon 7.1 Space
Terratec Phase22
Terratec Phase28
M-Audio Revolution 5.1
M-Audio Revolution 7.1
ESI Juli@
Cards that are not listed are NOT supported!
For questions or bug reports, please contact me at:
drivers@audio-evolution.com.
Donations are welcome at paypal@audio-evolution.com!"
if [ -d /System/Library/Extensions/Envy24HTPCIAudioDriver.kext ]; then
kextunload /System/Library/Extensions/Envy24HTPCIAudioDriver.kext > /dev/null
kextunload /System/Library/Extensions/Envy24HTPCIAudioDriver.kext > /dev/null
rm -R /System/Library/Extensions/Envy24HTPCIAudioDriver.kext
fi
cp -R Envy24HTPCIAudioDriver.kext /System/Library/Extensions/
find /System/Library/Extensions/Envy24HTPCIAudioDriver.kext -type d -exec /bin/chmod 0755 {} \;
find /System/Library/Extensions/Envy24HTPCIAudioDriver.kext -type f -exec /bin/chmod 0744 {} \;
chown -R root:wheel /System/Library/Extensions/Envy24HTPCIAudioDriver.kext
kextload /System/Library/Extensions/Envy24HTPCIAudioDriver.kext
echo "Installation finished"