Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Commit 9564745

Browse files
committed
unload kext by bundle-name in preinstall script
1 parent 4142ae3 commit 9564745

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎install-scripts/preinstall‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/bin/bash
22

3-
KEXT_DIR="/Library/Extensions"
4-
KEXT="$KEXT_DIR/softu2f.kext"
3+
KEXT_BUNDLE="com.github.SoftU2FDriver"
54
LAUNCH_AGENT_PLIST="$HOME/Library/LaunchAgents/com.github.SoftU2F.plist"
65

76
# This directory should already exist, but some users have had issues with it
87
# being missing.
98
mkdir -p $KEXT_DIR
109

11-
kextunload $KEXT || true
10+
kextunload -b $KEXT_BUNDLE || true
1211
sudo -u "${USER}" launchctl unload $LAUNCH_AGENT_PLIST || true

0 commit comments

Comments
 (0)