Question

Locked

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
#!/bin/sh
# 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.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Mac OS Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums