File: linux-boot-prober

package info (click to toggle)
os-prober 1.04
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 132 kB
  • ctags: 22
  • sloc: sh: 813; makefile: 42
file content (15 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
. /usr/share/os-prober/common.sh

set -e
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