Home Forums Software InstaDMG Disable Bluetooth

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #380805
    geestar
    Participant

    Hi,

    I am successfully building images through InstaDMG and have incorporated the firstboot script package into the workflow, oddly on each image built, Bluetooth is always on and shown in the menu bar, I don’t mind it in the bar but how do you script to turn it off.

    In the firstboot.sh script I have tried
    [code]$networksetup -setnetworkserviceenabled ‘Bluetooth DUN’ off[/code]

    but it doesn’t do the trick – any thoughts?

    #380806
    Anonymous
    Guest

    What about:

    /usr/bin/defaults write /Library/Preferences/com.apple.Bluetooth ControllerPowerState -bool NO

    Or as a postinstall script for a pkg:

    /usr/sbin/chroot “$3” /usr/bin/defaults write /Library/Preferences/com.apple.Bluetooth ControllerPowerState -bool NO

    #380814
    geestar
    Participant

    Thanks!

    Put it in the postflight.sh script:

    # Turn off Bluetooth
    sudo defaults write “${PREFS_DIR}/com.apple.Bluetooth” ControllerPowerState -bool NO

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

Comments are closed