1
0
This repository has been archived on 2024-07-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-07-22 01:58:46 -03:00

56 lines
1.6 KiB
Bash
Executable File

#! /bin/sh
# postinst script for bftpd
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see /usr/doc/packaging-manual/
#
# quoting from the policy:
# Any necessary prompting should almost always be confined to the
# post-installation script, and should be protected with a conditional
# so that unnecessary prompting doesn't happen if a package's
# installation fails and the `postinst' is called with `abort-upgrade',
# `abort-remove' or `abort-deconfigure'.
case "$1" in
configure)
cd /etc/rc0.d && ln -f -s ../init.d/bftpd K20bftpd
cd /etc/rc1.d && ln -f -s ../init.d/bftpd K20bftpd
cd /etc/rc2.d && ln -f -s ../init.d/bftpd S20bftpd
cd /etc/rc3.d && ln -f -s ../init.d/bftpd S20bftpd
cd /etc/rc4.d && ln -f -s ../init.d/bftpd S20bftpd
cd /etc/rc5.d && ln -f -s ../init.d/bftpd S20bftpd
cd /etc/rc6.d && ln -f -s ../init.d/bftpd K20bftpd
/etc/init.d/bftpd start
exit 0
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0