blob: 6c9cd06237df70b7c0471d9c0a01f8f5dea432a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
/usr/bin/udevadm trigger
if [ -z "`grep '^fax:' /etc/passwd`" ]; then
useradd -u 51 -d /var/spool/fax -g root -s /usr/bin/nologin fax
fi
chown -R fax:root /var/spool/fax
touch /var/log/sendfax.log
chown fax.root /var/log/sendfax.log
echo --- Please read notes: ---
echo Please update files in /etc/mgetty+sendfax/ before starting daemon
echo Daemon is faxrunqd, add to /etc/rc.conf daemon list if you want to
echo ---------------------------
}
post_remove() {
userdel fax &> /dev/null
/sbin/udevadm trigger
}
|