Hi
I was trying to extend the firstboot script with the function “set Computer & Local Hostname” as you can see in the script below.
[code]#Script to change Computer & Local Hostname
# ConsoleMessage
echo “set Computer & Local Hostname”
ip=`ifconfig en0 inet | grep inet | sed ‘s/.*inet *//; s/ .*//’`
echo “$ip”
ip4=`echo $ip | sed ‘s/\./-/g’`
echo “$ip4”
scutil –set ComputerName “stud $ip”
scutil –set LocalHostName “stud$ip4″[/code]
After creating an image with InstaUp2Date and distribute it with DeployStudioServer the imaged machine produces the following error message
3/4/11 2:01:45 PM ch.uzh.ifi.firstboot[52] set Computer & Local Hostname
3/4/11 2:01:45 PM ch.uzh.ifi.firstboot[52] 2011-03-04 14:01:45.418 writeconfig[225:903] *** -[NSMachPort handlePortMessage:]: dropping incoming DO message because the connection or ports are invalid
3/4/11 2:01:45 PM ch.uzh.ifi.firstboot[52] ifconfig: interface en0 does not exist
If I test “ifconfig en0” after reboot it works as expected.
Any idea how to solve this?
thanks enrico
Comments are closed