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:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2007-01-11
|
357 b
|
24 lines
#!/bin/sh
. /usr/share/os-prober/common.sh
set -e
DO_MOUNTED=""
if [ "$1" = "--mounted" ]; then
DO_MOUNTED="1"
shift 1
fi
export DO_MOUNTED
partition="$1"
for test in /usr/lib/linux-boot-probes/*; do
debug "running $test"
if [ -x $test ] && [ -f $test ]; then
if $test $partition; then
debug "linux detected by $test"
break
fi
fi
done