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

Commit

Permalink
ensure kext directory exists
Browse files Browse the repository at this point in the history
A user reached out, having debugged an install issue to the `/Library/Extensions` directory not existing. This should definitely exist on a fresh install, but we might as well double check during preinstall.
  • Loading branch information
btoews committed Nov 29, 2017
1 parent ef16c23 commit 89a844d
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 89a844d

Please sign in to comment.