summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-03-21 23:53:40 +0000
committeralfred <alfred@FreeBSD.org>2001-03-21 23:53:40 +0000
commit24af4863f09ecb04b26ed8de47a5a52075238c82 (patch)
treec13aa1a20afc372ca4257000905ccbf1f64940b1 /release
parent988be657c9e87a484477550e96682afff55992c3 (diff)
downloadFreeBSD-src-24af4863f09ecb04b26ed8de47a5a52075238c82.zip
FreeBSD-src-24af4863f09ecb04b26ed8de47a5a52075238c82.tar.gz
This adds /etc/netconfig to the list of files that get copied to
/stand/etc on the mfsroot, and hence to /etc on the install target disk for use during the install. It also links netconfig and services into /etc on the mfsroot so that they are available to a fixit shell. Submitted by: iedowse
Diffstat (limited to 'release')
-rw-r--r--release/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/release/Makefile b/release/Makefile
index a59585a..c0b4974 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -85,7 +85,7 @@ BIN_DISTS?= bin
DISTRIBUTIONS?= ${BIN_DISTS} ${OTHER_DISTS} ${COMPAT_DISTS} ${CRYPTO_DISTS}
KERNELS?= GENERIC
-BOOT1= etc/protocols etc/defaults/rc.conf
+BOOT1= etc/protocols etc/netconfig etc/defaults/rc.conf
# mountpoint for filesystems.
MNT= /mnt
@@ -537,11 +537,10 @@ release.8: write_mfs_in_kernel
cp ${.CURDIR}/../etc/defaults/pccard.conf ${RD}/mfsfd/etc/defaults/pccard.conf
cp ${.CURDIR}/../etc/usbd.conf ${RD}/mfsfd/etc/usbd.conf
cd ${RD}/trees/bin && ls ${BOOT1} | cpio -dump ${RD}/mfsfd/stand
- echo "nameserver 42/tcp name" > ${RD}/mfsfd/stand/etc/services
- echo "ftp 21/tcp" >> ${RD}/mfsfd/stand/etc/services
- echo "domain 53/tcp nameserver" >> ${RD}/mfsfd/stand/etc/services
- echo "domain 53/udp nameserver" >> ${RD}/mfsfd/stand/etc/services
- echo "cmd 514/tcp shell" >> ${RD}/mfsfd/stand/etc/services
+ grep -E '^(ftp|nameserver|domain|sunrpc|cmd|nfsd)[^-\w]' \
+ ${.CURDIR}/../etc/services > ${RD}/mfsfd/stand/etc/services
+ ln ${RD}/mfsfd/stand/etc/services ${RD}/mfsfd/etc/services
+ ln ${RD}/mfsfd/stand/etc/netconfig ${RD}/mfsfd/etc/netconfig
gzip -9c ${.CURDIR}/../COPYRIGHT > ${RD}/mfsfd/stand/help/COPYRIGHT.hlp.gz
@for i in README.TXT RELNOTES.TXT INSTALL.TXT UPGRADE.TXT HARDWARE.TXT; do \
if [ -f ${.CURDIR}/texts/${MACHINE_ARCH}/$${i} ]; then \
OpenPOWER on IntegriCloud