Mac OS



script in deploystudio workflow stucks

By gzstation ·
i was running a "enable airport" script in workflow at the last step by selecting run at the first boot in deploystudio
whenever i finish restore job and comes to the last step and boot for the first time, the workflow log looks stuck and not processing or boot into system anymore. the script itself works perfect in my terminal, but looks it can't break out from workflow.
could someone help me look at it? the script is like below
# Activate Wi-Fi on en1 and join SSID with password
airport=$(/usr/sbin/networksetup -listallhardwareports | grep -A 1 Wi-Fi | grep Device | awk '{print $2}')
echo $airport
networksetup -setairportpower $airport on
networksetup -setairportnetwork $airport SSID 'Password'
exit 0
my expectation is after running this script, the mac will reboot to the target disk with the wifi connected.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Related Discussions

Related Forums