home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2011 March / ME_2011_03.iso / Customize / Tools / StartupSoundPrefPane11b3.dmg / StartupSoundPrefPane.pkg / Contents / Resources / .svn / text-base / postflight.svn-base < prev   
Encoding:
Text File  |  2009-09-08  |  456 b   |  20 lines

  1. #!/bin/bash
  2.  
  3. PLIST_DIR="/Library/Preferences"
  4. PLIST_NAME="arcana.StartupSound"
  5. PLIST_PATH="${PLIST_DIR}/${PLIST_NAME}.plist"
  6. STARTUP_ITEM="ArcanaStartupSound"
  7.  
  8. SystemStarter stop "${STARTUP_ITEM}"
  9.  
  10. if [[ ! -e "${PLIST_PATH}" ]]; then
  11.     cp "${PACKAGE_PATH}/Contents/Resources/${PLIST_NAME}.plist" "${PLIST_DIR}"
  12.     chmod 644 "${PLIST_PATH}"
  13. fi
  14.  
  15. defaults write "${PLIST_DIR}/${PLIST_NAME}" SetAnyway -boolean true
  16.  
  17. SystemStarter start "${STARTUP_ITEM}"
  18.  
  19. exit 0
  20.