File: linux-boot-prober

package info (click to toggle)
os-prober 1.17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 124 kB
  • ctags: 24
  • sloc: sh: 924; makefile: 43
file content (23 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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