diff options
author | phk <phk@FreeBSD.org> | 2004-04-27 16:04:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-04-27 16:04:41 +0000 |
commit | 927d6867f047e5ca2a26e76d448e4f6b998f43ea (patch) | |
tree | c8fbacc2c453ab29a115585b3fb727400bea9ec4 /tools | |
parent | 7b7ea5391bc88f578b523e79acdf7c2c4badb160 (diff) | |
download | FreeBSD-src-927d6867f047e5ca2a26e76d448e4f6b998f43ea.zip FreeBSD-src-927d6867f047e5ca2a26e76d448e4f6b998f43ea.tar.gz |
More POLA handling of CUSTOMIZE variable
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/nanobsd/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/tools/nanobsd/Makefile b/tools/tools/nanobsd/Makefile index 5866ee8..371b352 100644 --- a/tools/tools/nanobsd/Makefile +++ b/tools/tools/nanobsd/Makefile @@ -43,13 +43,18 @@ all: buildworld installworld buildimage Customize: _.cs _.cs: _.iw _.di _.ik _.di echo "/dev/ad0s1a / ufs ro 1 1" > ${WD}/etc/fstab -.if exists(${CUSTOMIZE}) - sh -e ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} -.else +.if empty(CUSTOMIZE) # useful stuff for diskless boot sed -i "" -e /beastie/d ${WD}/boot/loader.rc sed -i "" -e /ttyd0/s/off/on/ ${WD}/etc/ttys echo " -h" > ${WD}/boot.config +.elif exists(${CUSTOMIZE}) + sh -e ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} +.elif exists(${.CURDIR}/${CUSTOMIZE}) + sh -e ${.CURDIR}/${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} +.else + echo "CUSTOMIZE script not found" 1>&2 + false .endif touch _.cs |