kopia lustrzana https://github.com/stlink-org/stlink
17 wiersze
337 B
Bash
17 wiersze
337 B
Bash
#!/bin/bash
|
|
|
|
ISMACOS=$(sw_vers -productVersion)
|
|
case $ISMACOS in
|
|
10.15*)
|
|
KEXT="stlink_shield_10_15.kext"
|
|
;;
|
|
*)
|
|
echo "OS X version not supported."
|
|
exit 1
|
|
;;
|
|
esac
|
|
chown -R root:wheel $KEXT/
|
|
cp -R $KEXT /Library/Extensions/stlink_shield.kext
|
|
kextload -v /Library/Extensions/stlink_shield.kext
|
|
touch /Library/Extensions
|