]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Add essential maintainer scripts
authorAron Xu <aron@debian.org>
Sat, 13 Jul 2013 18:51:40 +0000 (02:51 +0800)
committerAron Xu <aron@debian.org>
Sat, 13 Jul 2013 18:51:40 +0000 (02:51 +0800)
debian/zfs-modules-_KVERS_.postinst.in [new file with mode: 0644]
debian/zfs-modules-_KVERS_.postrm.in [new file with mode: 0644]

diff --git a/debian/zfs-modules-_KVERS_.postinst.in b/debian/zfs-modules-_KVERS_.postinst.in
new file mode 100644 (file)
index 0000000..8ab2d19
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+# Run depmod first
+depmod
+
+#DEBHELPER#
+
+
+case $1 in
+       (configure)
+               if [ -x /usr/share/update-notifier/notify-reboot-required ]; then
+                       /usr/share/update-notifier/notify-reboot-required
+               fi
+               ;;
+esac
diff --git a/debian/zfs-modules-_KVERS_.postrm.in b/debian/zfs-modules-_KVERS_.postrm.in
new file mode 100644 (file)
index 0000000..2a2fc4b
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# Run depmod after module uninstallation.
+depmod
+
+#DEBHELPER#