home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / linux-boot-prober < prev    next >
Encoding:
Text File  |  2007-01-11  |  357 b   |  24 lines

  1. #!/bin/sh
  2. . /usr/share/os-prober/common.sh
  3.  
  4. set -e
  5.  
  6. DO_MOUNTED=""
  7. if [ "$1" = "--mounted" ]; then
  8.     DO_MOUNTED="1"
  9.     shift 1
  10. fi
  11. export DO_MOUNTED
  12.  
  13. partition="$1"
  14.  
  15. for test in /usr/lib/linux-boot-probes/*; do
  16.     debug "running $test"
  17.     if [ -x $test ] && [ -f $test ]; then
  18.         if $test $partition; then
  19.             debug "linux detected by $test"
  20.                break
  21.         fi
  22.     fi
  23. done
  24.