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

Commit

Permalink
unload kext by bundle-name in preinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
btoews committed Jun 13, 2018
1 parent 4142ae3 commit 9564745
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install-scripts/preinstall
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash

KEXT_DIR="/Library/Extensions"
KEXT="$KEXT_DIR/softu2f.kext"
KEXT_BUNDLE="com.github.SoftU2FDriver"
LAUNCH_AGENT_PLIST="$HOME/Library/LaunchAgents/com.github.SoftU2F.plist"

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

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

0 comments on commit 9564745

Please sign in to comment.