Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: dscl scripts – revisited #380608
    Joy
    Participant

    If 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!

    in reply to: Final Cut Pro and Instadmg #379231
    Joy
    Participant

    InstallEase 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?

    in reply to: 10.5.8 images revisited #379053
    Joy
    Participant

    I’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!

    in reply to: Importing the base OS #378905
    Joy
    Participant

    I’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.

    in reply to: Importing the base OS #378893
    Joy
    Participant

    Do 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 …..

    in reply to: dscl scripts – revisited #378612
    Joy
    Participant

    One 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.

    in reply to: launchdaemons and dscl . -create #378537
    Joy
    Participant

    I 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!!

    in reply to: launchdaemons and dscl . -create #378527
    Joy
    Participant

    [code]


    Label
    com.attrsetup.sh
    ProgramArguments

    /Library/Scripts/Custom/attrsetup.sh

    RunAtLoad
    [/code]

    in reply to: launchdaemons and dscl . -create #378518
    Joy
    Participant

    and 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:89

    in reply to: launchdaemons and dscl . -create #378517
    Joy
    Participant

    So 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.dtd dict
    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
    plist

    in reply to: launchdaemons and dscl . -create #378516
    Joy
    Participant

    Hi 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

    in reply to: launchdaemons and dscl . -create #378511
    Joy
    Participant

    Thanks for the reply. Below is the script I’m using and the launchdaemon:

    Script
    *******
    !/bin/sh

    macAddress=`/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

Viewing 12 posts - 1 through 12 (of 12 total)