afbf09cc33
enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License. WWW: http://www.virtualbox.org/ Note: Please READ pkg-messages carefully, also please take a look in the Wiki page (http://wiki.freebsd.org/VirtualBox) Thanks to: thank you to everyone who helped make this possible.
22 lines
385 B
Bash
22 lines
385 B
Bash
#!/bin/sh
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
GROUP=%%VBOXGROUP%%
|
|
GID=%%VBOXGID%%
|
|
PW=/usr/sbin/pw
|
|
|
|
if ${PW} group show "${GROUP}" 2>/dev/null; then
|
|
echo "You already have a group \"${GROUP}\", so I will use it."
|
|
else
|
|
if ${PW} groupadd ${GROUP} -g ${GID}; then
|
|
echo "Added group \"${GROUP}\"."
|
|
else
|
|
echo "Adding group \"${GROUP}\" failed..."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
exit 0
|
|
;;
|
|
esac
|