Home Forums Software InstaDMG Setting certain network interfaces to Disabled?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #376873
    Chris George
    Participant

    I’d like to set certain network interfaces… all of them save Ethernet, actually… to be disabled in our InstaDMG produced image.

    I see how they are set to be disabled – specifically, within /Library/Preferences/SystemConfiguration/preferences.plist, and a key “__INACTIVE__” is appended to the specific network interface with a boolean value of true. I’m just not sure how I would recreate this within an InstaDMG image.

    Any ideas?

    #376874
    Chris George
    Participant

    Never mind. I just discovered networksetup -setnetworkserviceenabled.

    #376919
    knowmad
    Participant

    Chris,
    I may be remembering this wrong but… network setup only works after boot… not in the build train… true?

    #376933
    Chris George
    Participant

    [QUOTE][u]Quote by: knowmad[/u][p]Chris,
    I may be remembering this wrong but… network setup only works after boot… not in the build train… true?
    [/p][/QUOTE]

    You’re probably remembering correctly. I don’t know for certain – I ended up just including the networksetup lines into my first start launchd-fired script, and it does exactly what I want it to do.

    #376949
    larkost
    Participant

    Inside the image there are no network interfaces defined. Those get setup on first boot by the normal first-run scripts. If you are disabling those (so you don’t get asked to create a “first user”) then you have to do the work yourself with that line.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed