summaryrefslogtreecommitdiffstats
path: root/debian/open-infrastructure-system-boot.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/open-infrastructure-system-boot.postinst')
-rwxr-xr-xdebian/open-infrastructure-system-boot.postinst27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/open-infrastructure-system-boot.postinst b/debian/open-infrastructure-system-boot.postinst
new file mode 100755
index 0000000..35b9e86
--- /dev/null
+++ b/debian/open-infrastructure-system-boot.postinst
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ configure)
+ mkdir -p /etc/live/boot
+
+ if [ -x "$(which update-initramfs 2>/dev/null)" ] && [ -e /etc/initramfs-tools/initramfs.conf ]
+ then
+ update-initramfs -u
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0