setAirPortNetwork.sh Script from March 2010 Resource Kit Not Working

Not applicable

When I run the script as part of the imaging process (with the script set
to after or at reboot) it does not work. If I push it using Casper Remote
(with a user logged in) it doesn't work and I get the following result:

Script Exit Code: 126
Script Result: sh: /private/tmp/setAirPortNetwork.sh: /bin/sh^M: bad
interpreter: No such file or directory

This is on a 10.6.2 machine.

If I copy the script to the desktop, make it executable in terminal and
run it; it works. Any ideas why it won't work as part of the imaging
first run script?

Cody Smedsrud
Educational Technology Associate
Success Charter Network
34 West 118th Street, Second Floor
New York, NY 10026
646-747-2370 (office)
646-842-0981 (mobile)
212-457-5659 (fax)
cody.smedsrud at successcharters.org

2 REPLIES 2

Not applicable

I’ve gotten that when the permissions for the script on the server were not correct.

Open Casper Admin, then open a terminal, and run this command:

chmod 755 /Volumes/{name of casperShare}/Scripts/setAirPortNetwork.sh

Sync your distribution points and you should be good to go.

Regards,
![external image link](attachments/cdc6a3f639e3400ba41c9ee54733588c)

jarednichols
Honored Contributor

126 indicates that the command invoked cannot be executed, likely due to it
not being an executable or the user who's running it not having permissions
to do so.

j