instadmg running custom ard setp pkg kills screen sharing
I run instadmg off a 10.6.3 server building 10.6.3 client images. The server is headless, so I need to use Screen Sharing (rather than Remote Management, I can't get the server to use AD users to let them use vnc to log into the server via remote management service, but I can using screen sharing)
The issue I get into is when I run a custom apple remote desktop client (built from ard) during the custom pkg setup. It runs just fine, but it always kills my screen sharing service on the machine. I ssh in, turn it back on, and all is well again. But I have to do it everytime I'm building images.
I figure the instadmg script could at some point invoke a sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd" but I'm not sure where to put it so that it turns it back on exactly when that pkg is being called.
Any ideas?