mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
|
|
print_install() {
|
|
printf "\n"
|
|
echo "If installing new:"
|
|
printf "\n"
|
|
echo "Add the following to /etc/inittab and run telinit q"
|
|
echo " f1:2345:respawn:/usr/lib/fax/faxgetty ttyS0"
|
|
echo "faxgetty should now be running"
|
|
printf "\n"
|
|
echo "Run faxsetup to configure and be sure to set..."
|
|
echo " The device to configure is usually ttyS0"
|
|
echo " The number of pages to accept to more than 25"
|
|
echo " The country code and area code"
|
|
echo " The faxclass to 2.0"
|
|
echo " Most other defaults are OK"
|
|
printf "\n"
|
|
}
|
|
|
|
print_remove() {
|
|
printf "\n\n"
|
|
echo "You may manually remove /var/spool/hylafax and /usr/lib/fax if you do not need anything."
|
|
echo "You may also remove any aliases added to /etc/mail/aliases."
|
|
printf "\n"
|
|
}
|
|
|
|
post_install() {
|
|
groupadd -g 14 uucp &>/dev/null
|
|
useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
|
|
useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
|
|
print_install
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
usermod -d '/' uucp
|
|
usermod -d '/' fax
|
|
}
|
|
|
|
pre_remove() {
|
|
userdel uucp &>/dev/null
|
|
groupdel uucp &>/dev/null
|
|
userdel fax &>/dev/null
|
|
print_remove
|
|
}
|
|
|
|
op=$1
|
|
shift
|
|
|
|
$op $*
|