Update debian/watch, debian/lilo.* and debian/lilo-doc.*
[rrq/maintain_lilo.git] / debian / lilo.sh
1 #!/bin/sh -e
2
3 # if chroot.
4 if [ "$1" = "-r" -a "$2" != "" ]; then
5   if [ -c /dev/.devfsd -a ! -c $2/dev/.devfsd ]; then
6     mount none $2/dev -t devfs
7   fi
8
9 # use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
10   $0.real "$@"
11   if [ -c /dev/.devfsd ]; then
12     umount $2/dev
13   fi
14
15 else
16
17 # use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
18   $0.real "$@"
19   if [ "$1" != "-t" ]; then
20     rm -f /boot/boot.b.preserved* /boot/boot-text.b.preserved* /boot/boot-menu.b.preserved* /boot/chain.b.preserved* /boot/os2_d.b.preserved* /boot/boot-bmp.b.preserved
21   fi
22
23 fi