Commit 77eb9ee2 authored by Ralph Ronnquist's avatar Ralph Ronnquist

Re-added lost postinst and prerm files correctly named, and remove the .EX file

parent 021e21b0
Document: vdev
Title: Debian vdev Manual
Author: <insert document author here>
Abstract: This manual describes what vdev is
and how it can be used to
manage online manuals on Debian systems.
Section: unknown
Format: debiandoc-sgml
Files: /usr/share/doc/vdev/vdev.sgml.gz
Format: postscript
Files: /usr/share/doc/vdev/vdev.ps.gz
Format: text
Files: /usr/share/doc/vdev/vdev.text.gz
Format: HTML
Index: /usr/share/doc/vdev/html/index.html
Files: /usr/share/doc/vdev/html/*.html
#!/bin/sh
# postinst script for vdevd
#
# 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>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
/lib/vdev/gen-ifnames.sh >> /etc/vdev/ifnames.conf
# Capture important udev files for later restoration
tar czf $UDEVTGZ -C $IT init $(find $IT -name udev -printf '%P ')
# Chose vdev
/usr/share/vdev/vdev-install.sh vdev
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# prerm script for vdevd
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
# Try to be polite and restore those udev files
/usr/share/vdev/vdev-install.sh udev
rm -f /usr/share/vdev/udev-initramfs.tgz
rm -f /etc/vdev/ifnames.conf
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment