1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/net-mgmt/kismet/suid_pkg-install
Brendan Fabeny 4a4053ce51 Update to 2010-07-R1
Approved by:	makc, miwi (co-mentors, implicit)
2010-10-03 07:42:20 +00:00

23 lines
447 B
Bash

#! /bin/sh
PATH=/bin:/usr/sbin
KISMET_GROUP=${KISMET_GROUP:-kismet}
KISMET_GID=${KISMET_GID:-229}
case $2 in
PRE-INSTALL)
if pw group show "${KISMET_GROUP}" 2>/dev/null; then
echo "You already have a group \"${KISMET_GROUP}\", so I will use it."
else
if pw groupadd ${KISMET_GROUP} -g ${KISMET_GID}; then
echo "Added group \"${KISMET_GROUP}\"."
else
echo "Adding group \"${KISMET_GROUP}\" failed..."
exit 1
fi
fi
;;
esac