35 lines
715 B
Text
35 lines
715 B
Text
# $NetBSD: INSTALL,v 1.1 2001/10/31 22:58:15 zuntum Exp $
|
|
#
|
|
|
|
if [ "$2" != "PRE-INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ -f /usr/sbin/user ]
|
|
then
|
|
USER_CMD=/usr/sbin/user
|
|
GROUP_CMD=/usr/sbin/group
|
|
else
|
|
if [ -f ${PKG_PREFIX}/sbin/user ]
|
|
then
|
|
USER_CMD=${PKG_PREFIX}/sbin/user
|
|
GROUP_CMD=${PKG_PREFIX}/sbin/group
|
|
else
|
|
echo
|
|
echo Please install the sysutils/user first!
|
|
echo
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
if `${GROUP_CMD} info -e glunix` ; then \
|
|
${ECHO} Group \'glunix\' already exists.; \
|
|
else \
|
|
${GROUP_CMD} add glunix; \
|
|
fi
|
|
if `${USER_CMD} info -e glunix` ; then \
|
|
${ECHO} User \'glunix\' already exists.; \
|
|
else \
|
|
${USER_CMD} add -g glunix -d /nonexistent -s \
|
|
${PKG_PREFIX}/now/bin/glush glunix; \
|
|
fi
|