summaryrefslogtreecommitdiff
path: root/sysutils/sysbuild/INSTALL
blob: 801a33051e11373bad04fc0f7c1b2893bbf6a3aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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