AFP548

Installing Packages on First Startup of a Newly Imaged Machine

[QUOTE][u]Quote by: Patrick+Fergus[/u][p][QUOTE][u]Quote by: typofonic[/u][p]Hi arekdreyer, Could you post your script? I have some problems making it check "Use Network Timeserver" in the preferences using a postfight script. - Anders[/p][/QUOTE]###### Try this:[code]/usr/sbin/systemsetup -setnetworktimeserver ntpserver.company.com /usr/sbin/systemsetup -setusingnetworktime on[/code]You're going to need to run this on first boot of a freshly imaged machine, likely installing a payload-free pkg via launchd or SystemStarter. Someone else will probably provide the instructions on how to do this at InstaDMG image creation time (rather than first boot), but I figure if Apple has already provided a way to set this up I'd rather use it than have to cobble it together myself. Also, systemsetup can't set setting on a non-startup disk. - Patrick[/p][/QUOTE] Thanks Patrick, But how is it possible to install a payload-free pg via launchd or SystemStarter. Sorry if this is basic, I'm pretty new to this :) ##### (split this post from this thread: [url]https://www.afp548.com/forum/viewtopic.php?showtopic=21477[/url] It's a good question and should get the visibility it needs in a new thread. - Patrick)
Exit mobile version