Skip to content

Instantly share code, notes, and snippets.

nkalister's iMac Pro:~ nkalister$ autopkg run -v Silverlight-deploy.jss
Processing Silverlight-deploy.jss...
URLDownloader
URLDownloader: Storing new Last-Modified header: Wed, 07 Sep 2016 02:09:13 GMT
URLDownloader: Storing new ETag header: "80aaebd3ac8d21:0"
URLDownloader: Downloaded /Users/nkalister/Library/AutoPkg/Cache/local.jss.Silverlight-deploy/downloads/Silverlight.dmg
EndOfCheckPhase
CodeSignatureVerifier
CodeSignatureVerifier: Mounted disk image /Users/nkalister/Library/AutoPkg/Cache/local.jss.Silverlight-deploy/downloads/Silverlight.dmg
CodeSignatureVerifier: Using path '/private/tmp/dmg.06mTWP/silverlight.pkg' matched from globbed '/private/tmp/dmg.06mTWP/silverlight*.*pkg'.
#!/bin/bash
OS=`sw_vers -productVersion`
result=`what /usr/libexec/opendirectoryd | grep PROJECT | cut -d ":" -f3`
if [[ "$OS" == "10.13.1" ]]; then
if [[ "$result" != "opendirectoryd-483.20.7" ]]; then
result="Not Patched"
else
result="Patched"
fi
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDescription</key>
<string>Configures Configuration Profile security</string>
<key>PayloadDisplayName</key>
@elvisizer
elvisizer / gist:2dfa119e959ae6f35389d4d56054f067
Last active June 5, 2022 13:46
High Sierra firmware updates outside of the OS installer.app
Procedure followed by Pepijn to run the high sierra firmware installer:
1. get the FirmwareUpdate.pkg file from the OS installer app's installESD.dmg
2. extract the contents using pkgutil --expand /path/to/FirmwareUpdate.pkg <path somewhere else>/FirmwareUpdate
3. in terminal, cd to the Scripts directory inside the expanded FirmwareUpdate pkg directory.
4. with Scripts as your working directory, run these 2 commands, then reboot:
sudo /usr/libexec/FirmwareUpdateLauncher -p "$PWD/Tools"
sudo /usr/libexec/efiupdater -p "$PWD/Tools/EFIPayloads"
5. at the reboot, firmware will be updated if there are any updates to be applied.
#!/bin/bash
echo "detecting network hardware"
networksetup -detectnewhardware
sleep 1
echo "setting network service order"
while read networkService; do
if [[ ${networkService} == "Thunderbolt Bridge" ]]; then
deprioritizedServices+=( "${networkService}" )
elif [[ ${networkService} =~ .*Ethernet.* ]] || [[ ${networkService} =~ .*Thunderbolt.* ]]; then
prioritizedServices+=( "${networkService}" )