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

Commit

Permalink
Merge pull request #41 from github/fix-missing-kext-dir
Browse files Browse the repository at this point in the history
Ensure kext directory exists
  • Loading branch information
mastahyeti authored Nov 29, 2017
2 parents ef16c23 + 89a844d commit a48082d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install-scripts/preinstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

KEXT="/Library/Extensions/softu2f.kext"
KEXT_DIR="/Library/Extensions"
KEXT="$KEXT_DIR/softu2f.kext"
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
sudo -u "${USER}" launchctl unload $LAUNCH_AGENT_PLIST || true

0 comments on commit a48082d

Please sign in to comment.