Add a couple of basic customization scripts.
This commit is contained in:
parent
6283ced1e2
commit
63ad46aa0d
15
tools/tools/nanobsd/Customize/files
Normal file
15
tools/tools/nanobsd/Customize/files
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Install whatever files are in ${.CURDIR}/Files
|
||||
#
|
||||
# Copyright (c) 2004 Poul-Henning Kamp
|
||||
#
|
||||
# See /usr/share/examples/etc/bsd-style-copyright for license terms.
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Usage:
|
||||
# ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} [ ${LOCAL_FILES_LIST} ]
|
||||
|
||||
cd $3/Files
|
||||
find . -print | cpio -dumpv $1
|
18
tools/tools/nanobsd/Customize/pkgs
Normal file
18
tools/tools/nanobsd/Customize/pkgs
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Install whatever packages are in ${.CURDIR}/Pkg
|
||||
#
|
||||
# Copyright (c) 2004 Poul-Henning Kamp
|
||||
#
|
||||
# See /usr/share/examples/etc/bsd-style-copyright for license terms.
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Usage:
|
||||
# ${CUSTOMIZE} ${WD} ${WORLDDIR} ${.CURDIR} [ ${LOCAL_FILES_LIST} ]
|
||||
|
||||
rm -rf $1/tmp/Pkg $1/var/db/pkg/* $1/usr/local/*
|
||||
mkdir $1/tmp/Pkg
|
||||
ln $3/Pkg/* $1/tmp/Pkg
|
||||
( chroot $1 sh -c "cd /tmp/Pkg && pkg_add -v *" )
|
||||
rm -rf $1/tmp/Pkg
|
Loading…
Reference in New Issue
Block a user