Forum Replies Created
-
AuthorPosts
-
Joy
ParticipantIf I remember correctly, it was a combination of a couple of things. First, the dubious permissions on my launchagent and then the ole’ typos got me.
Changed the launchagent to the right permissions, made sure my typing was correct and everything worked!
Joy
ParticipantInstallEase uses before and after and shows the file changes/adds.
When I tell it to create the package, it goes thru the process and the fails the operation. If I try and do it manually with Apple’s packager, I get the same results.
How does Composer do the packages?
Joy
ParticipantI’ve been making my images booted off from externals, either running 10.6 or 10.5. Have not tried installing 10.5 on an Intel and creating the image. I’ll give that a shot. Thanks!
Joy
ParticipantI’m not doing anything illegal or hacking anything over here. A colleague tried to image a new imac with an image I had created, and it is missing some drivers. So I asked him to put the image up on a file server and I would make a new one for the iMac. I thought it would be easier and quicker then having him trudge all the way across the campus, just to deliver the DVD to me.
I was apparently wrong.
I will try the conversion and see if that works. If not, I will have to break the bad news to him and have him trudge it over to me.
Joy
ParticipantDo I have to run a checksum on the base dmg? I moved the .cdr to the base of folder and put the .dmg on the end and it is giving me a “unable to get checksum for image …..
Joy
ParticipantOne would think that, but the only launchd I have running is that one, other then the system ones. If I remove the ENetAddress part, the record gets added successfully. It is only when it tries to populate the ENetAddress key that the script fails.
I posted the problem on the Apple forums and someone gave me a different way of getting the en0, by using a perl script and that works, using the exact same launchdaemon. Although it puts the MAC address in that field 4 times.
I’ve opened an incident with Apple in hopes of shedding some light on the problem.
Joy
ParticipantI found the issue. It was a permissions error, but I also had to delay the launchd, because the ethernet wasn’t going active before the script ran so the macaddress was always nothing.
Thanks for the direction!!
Joy
Participant[code]
[/code]
Label
com.attrsetup.sh
ProgramArguments
/Library/Scripts/Custom/attrsetup.sh
RunAtLoad
Joy
Participantand if it is of any help, here is what Console has to say about everything:
5/4/10 2:57:51 PM com.attrsetup.plist[112] 00:1f:5b:ea:90:89
5/4/10 2:57:52 PM com.attrsetup.plist[112]attribute status: eDSPermissionError
5/4/10 2:57:52 PM com.attrsetup.plist[112]DS Error: -14120 (eDSPermissionError)
5/4/10 2:57:52 PM com.attrsetup.plist[112] was:
5/4/10 2:57:52 PM com.attrsetup.plist[112] now: 00:1f:5b:ea:90:89Joy
ParticipantSo much for that try on the plist.
xml version=”1.0″ encoding=”UTF-8″
DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtddict
key ,Label key
string com.attrsetup.sh string
key ProgramArguments key
array
string /Library/Scripts/Custom/attrsetup.sh string
array
key RunAtLoad key
true
dict
plistJoy
ParticipantHi Greg,
First, big THANKS for all your articles. I refer to them a LOT!
Next, yes, I do have the #!/bin/sh as my first line. I failed to grab all the text in my copy/paste.
Third, yes, the forum did mess up my plist. I’m trying it again. When I drop to the command line, I type in sudo ./attrsetup.sh and it runs perfectly, every time. To make it an executable, I typed the following chmod a+x path/to/script. Is this correct?
“
”
Label
com.attrsetup.sh
ProgramArguments
/Library/Scripts/Custom/attrsetup.sh
RunAtLoad
Joy
Joy
ParticipantThanks for the reply. Below is the script I’m using and the launchdaemon:
Script
*******
!/bin/shmacAddress=`/sbin/ifconfig en0 | /usr/bin/grep ‘ether’ | /usr/bin/sed “s/^[[:space:]]ether //” | cut -f1 -d ” “`
echo $macAddress
MACHINE_TYPE=`/usr/sbin/system_profiler SPHardwareDataType | grep “Model Identifier” | grep “Book”`
if [ “$MACHINE_TYPE” = “Book” ]; then
computerRecordName=Laptop
else
computerRecordName=Desktop
fi/usr/bin/dscl . -create /computers/$computerRecordName ENetAddress $macAddress
echo “was: $storedMacAddress”
echo “now: $macAddress”Launchdaemon
****
Label
com.attrsetup.sh
ProgramArguments
/Library/Scripts/Custom/attrsetup.sh
RunAtLoad
-
AuthorPosts
Recent Comments