summaryrefslogtreecommitdiffstats
path: root/release/Makefile
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-09-14 04:01:57 +0000
committerbrooks <brooks@FreeBSD.org>2004-09-14 04:01:57 +0000
commit2f1bcffbef0c2826183a3684b6396372d314f7c1 (patch)
treed874bc7ea8a67ef83d329f068b981b7eb026eff9 /release/Makefile
parentde866b234be87413e0e77412ae2a112cd87c6129 (diff)
downloadFreeBSD-src-2f1bcffbef0c2826183a3684b6396372d314f7c1.zip
FreeBSD-src-2f1bcffbef0c2826183a3684b6396372d314f7c1.tar.gz
Add 'hint.atkbd.0.flags="0x1"' back to /boot/device.hints on the
install media on i386 and amd64. While the current default is very useful in server environments, the ability to use USB keyboards is vastly more important then the ability to use PS/2 keyboards the admin forgot to plug in during the install process. PR: kern/71443
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/release/Makefile b/release/Makefile
index 2b8d73f..669063e 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -917,6 +917,14 @@ cdrom.1:
@echo 'mfsroot_load="YES"' > ${CD_DISC2}/boot/loader.conf
@echo 'mfsroot_type="mfs_root"' >> ${CD_DISC2}/boot/loader.conf
@echo 'mfsroot_name="/boot/mfsroot"' >> ${CD_DISC2}/boot/loader.conf
+.if exists(${HINTSFILE})
+ # Break the link to device.hints so we can modify it
+ @rm ${CD_DISC2}/boot/device.hints
+ @cp ${HINTSFILE} ${CD_DISC2}/boot/device.hints
+.if ${TARGET} == "i386" || ${TARGET_ARCH} == "amd64"
+ @echo 'hint.atkbd.0.flags="0x1"' >> ${CD_DISC2}/boot/device.hints
+.endif
+.endif
.if defined(CD_BOOT)
@cp -Rp ${CD_DISC2}/boot ${CD_BOOT}
.if defined(MINIROOT)
@@ -1149,7 +1157,11 @@ buildBootFloppy:
@cp -Rp ${BOOTDIR}/*.4th ${BOOTDIR}/defaults ${BOOTDIR}/loader.help \
${BOOTDIR}/loader.rc ${IMAGEDIR}/boot
.if exists(${HINTSFILE})
- @gzip -9nc ${HINTSFILE} > ${IMAGEDIR}/boot/device.hints.gz
+ @cp ${HINTSFILE} ${IMAGEDIR}/boot/device.hints
+.if ${TARGET} == "i386" || ${TARGET_ARCH} == "amd64"
+ @echo 'hint.atkbd.0.flags="0x1"' >> ${IMAGEDIR}/boot/device.hints
+.endif
+ @gzip -9n ${IMAGEDIR}/boot/device.hints
.endif
@gzip -9n ${IMAGEDIR}/boot/*.4th ${IMAGEDIR}/boot/loader.help \
${IMAGEDIR}/boot/defaults/loader.conf
OpenPOWER on IntegriCloud