You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
607 B

  1. #!/bin/sh
  2. #
  3. # Controls behavior for a task on new install or not.
  4. #
  5. # To enable this test insert your tasks stanza a keyword like:
  6. #
  7. # Test-new-install: mark skip
  8. #
  9. # This will cause the task to be marked for install on new install, and
  10. # hidden otherwise.
  11. if [ "$NEW_INSTALL" ]; then
  12. var=$2
  13. else
  14. var=$3
  15. fi
  16. case "$var" in
  17. install)
  18. exit 0 # do not display, but do install task
  19. ;;
  20. skip)
  21. exit 1 # do not display task
  22. ;;
  23. mark)
  24. exit 2 # display task, marked for installation
  25. ;;
  26. show)
  27. exit 3 # display task, not marked for installation
  28. ;;
  29. *)
  30. exit 1 # unknown value, skip the task
  31. ;;
  32. esac