1 |
#! /bin/sh |
#! /bin/sh |
2 |
|
|
3 |
# Install GRUB on your drive. |
# Install GRUB on your drive. |
4 |
# Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
5 |
# |
# |
6 |
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
7 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
199 |
fi |
fi |
200 |
|
|
201 |
# Initialize these directories here, since ROOTDIR was initialized. |
# Initialize these directories here, since ROOTDIR was initialized. |
202 |
bootdir=${rootdir}/boot |
case "$host_os" in |
203 |
|
netbsd*) |
204 |
|
# Because /boot is used for the boot block in NetBSD, use /grub |
205 |
|
# instead of /boot/grub. |
206 |
|
grub_prefix=/grub |
207 |
|
bootdir=${rootdir} |
208 |
|
;; |
209 |
|
*) |
210 |
|
# Use /boot/grub by default. |
211 |
|
bootdir=${rootdir}/boot |
212 |
|
;; |
213 |
|
esac |
214 |
|
|
215 |
grubdir=${bootdir}/grub |
grubdir=${bootdir}/grub |
216 |
device_map=${grubdir}/device.map |
device_map=${grubdir}/device.map |
217 |
|
|