#!/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