1: #!/bin/bash
2: . /usr/share/debconf/confmodule
3:
4: db_get freem/users_for_group
5: for FREEM_USER in $RET
6: do
7: echo "Adding ${FREEM_USER} to group 'freem'..."
8: usermod -aG freem ${FREEM_USER}
9: done
10:
11: fmadm configure
12:
13: echo ""
14: echo "======================================================================"
15: echo "FreeM has been installed."
16: echo ""
17: echo ""
18: echo "The following users will have access to FreeM:"
19: echo " ${RET}"
20: echo ""
21: echo "NOTE: If the above users are currently logged in, they must log out"
22: echo " and log back in before FreeM will run."
23: echo ""
24: echo "To add additional users, run 'dpkg-reconfigure freem'."
25: echo "======================================================================"
26: echo ""
27:
28: #DEBHELPER#
29: exit 0
30:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>