diff options
author | Deon Spengler | 2015-07-21 09:57:02 +0200 |
---|---|---|
committer | Deon Spengler | 2015-07-21 09:57:02 +0200 |
commit | 32ebaac9c7e01b78c4c50fafdb6d87d46d8934c1 (patch) | |
tree | 5e15dd3a347dc159e54629e05595e117c1a9d40d /mgetty.install | |
download | aur-32ebaac9c7e01b78c4c50fafdb6d87d46d8934c1.tar.gz |
Initial commit
Diffstat (limited to 'mgetty.install')
-rw-r--r-- | mgetty.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mgetty.install b/mgetty.install new file mode 100644 index 000000000000..6c9cd06237df --- /dev/null +++ b/mgetty.install @@ -0,0 +1,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 +} |