Changes in this version include: * New flag `-f' (fast mode). This allows setting the UPDATE variable during builds (`-u' option of build.sh) and also makes kernel builds faster. * New target config-kernel. This makes it easy to modify kernel configuration files interactively. * Do not create sysbuild user's home directory during installation, to avoid hardcoding the /etc/skel path in the INSTALL script. Instead, provide a sample (and simple) `profile' file that is installed in the examples directory and is copied to the right place during the `init' target (suggested by jlam). * Use `printf' instead of `echo -n' (the later is not well supported under some systems, like Solaris).
27 lines
824 B
Text
27 lines
824 B
Text
#!/bin/sh
|
|
#
|
|
# $NetBSD: INSTALL,v 1.2 2002/12/01 19:39:49 jmmv Exp $
|
|
|
|
SYSBUILD_USER=@SYSBUILD_USER@
|
|
SYSBUILD_HOMEDIR=@SYSBUILD_HOMEDIR@
|
|
EGDIR=@EGDIR@
|
|
|
|
case ${STAGE} in
|
|
POST-INSTALL)
|
|
echo "Setting up sysbuild's crontab..."
|
|
crontab -u ${SYSBUILD_USER} -r > /dev/null 2>&1
|
|
crontab -u ${SYSBUILD_USER} ${EGDIR}/crontab > /dev/null 2>&1
|
|
;;
|
|
|
|
DEINSTALL)
|
|
echo "Removing sysbuild's crontab..."
|
|
crontab -u ${SYSBUILD_USER} -r > /dev/null 2>&1
|
|
${CAT} << EOF
|
|
===========================================================================
|
|
If you will not be using sysbuild any longer, you may want to remove
|
|
sysbuild's home directory and all work areas. Just to let you know, work
|
|
areas can be removed using the 'destroy' target of the program.
|
|
===========================================================================
|
|
EOF
|
|
;;
|
|
esac
|