Skip to content

Commit

Permalink
installer: ensure kext priority sort numerically to avoid human confu…
Browse files Browse the repository at this point in the history
…sion.

e.g.
before the patch:
0,1,10000,9999

after the patch:
0,1,9999,10000
  • Loading branch information
goodbest authored Sep 11, 2021
1 parent 971449a commit 4f366e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Installer/scripts/install_kexts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ do
rm "$_pf"
fi
echo "$_priority $line"
done | sort | \
done | sort -n | \
while read line
do
priority=`echo $line | awk '{ print $1 }'`
file=`echo $line | awk '{$1=""; print substr($0,2)}'`
file=`echo $line | awk '{ $1=""; print substr($0,2) }'`
echo "Found $file (priority $priority)"
kext="${file/$KEXTDIR\//}"
$PLIST_BUDDY -c "Add :Kernel:Add:$i dict" "$CONFIG"
Expand Down

0 comments on commit 4f366e9

Please sign in to comment.