config.sh 1009 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Use this script to customize the installer bootstrap script
  3. #
  4. # override some defaults
  5. # try to get root prior to running setup?
  6. # 0: no
  7. # 1: prompt, but run anyway if fails
  8. # 2: require, abort if root fails
  9. # 3: print SU_MESSAGE if not root, don't attempt any privilege upgrade
  10. GET_ROOT=1
  11. FATAL_ERROR="Error running installer. See http://zerowing.idsoftware.com/linux/doom/ for troubleshooting"
  12. #XSU_ICON="-i icon.xpm"
  13. SU_MESSAGE="The recommended install location (/usr/local/games) requires root permissions.\nPlease enter the root password or hit enter to continue install as current user."
  14. XSU_MESSAGE="The recommended install location (/usr/local/games) requires root permissions.^Please enter the root password or hit cancel to continue install as current user."
  15. rm -f /usr/local/games/tmp.$$ > /dev/null 2>&1
  16. touch /usr/local/games/tmp.$$ > /dev/null 2>&1
  17. status="$?"
  18. if [ "$status" -eq 0 ]
  19. then
  20. rm -f /usr/local/games/tmp.$$
  21. GET_ROOT=0
  22. else
  23. GET_ROOT=1
  24. fi