File: grub-install.wrapper

package info (click to toggle)
grub 0.97-27etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,576 kB
  • ctags: 8,866
  • sloc: ansic: 38,787; sh: 5,559; asm: 2,014; makefile: 652; perl: 338
file content (14 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Wrapper to warn user about kernel-img.conf move
#

if [ -x /usr/sbin/grub-install ]; then
	if [ "$0" = "/sbin/grub-install" ]; then
		echo "You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!" >&2
		echo >&2
	fi
	exec /usr/sbin/grub-install "$@"
else
	echo "Your /usr is broken; please fix it before calling this wrapper!" >&2
fi