10qnx 390 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. . /usr/share/os-prober/common.sh
  3. partition="$1"
  4. mpoint="$2"
  5. type="$3"
  6. # Weed out stuff that doesn't apply to us
  7. case "$type" in
  8. qnx4) debug "$partition is a QNX4 partition" ;;
  9. *) debug "$partition is not a QNX4 partition: exiting"; exit 1 ;;
  10. esac
  11. if [ -e "$mpoint/.boot" ]; then
  12. label="$(count_next_label QNX)"
  13. result "$partition:QNX:$label:chain"
  14. exit 0
  15. else
  16. exit 1
  17. fi