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.postinst7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/open-infrastructure-system-boot.postinst b/debian/open-infrastructure-system-boot.postinst
index 35b9e86..3ff8751 100755
--- a/debian/open-infrastructure-system-boot.postinst
+++ b/debian/open-infrastructure-system-boot.postinst
@@ -6,9 +6,12 @@ case "${1}" in
configure)
mkdir -p /etc/live/boot
- if [ -x "$(which update-initramfs 2>/dev/null)" ] && [ -e /etc/initramfs-tools/initramfs.conf ]
+ if command -v update-initramfs > /dev/null 2>&1
then
- update-initramfs -u
+ if [ -e /etc/initramfs-tools/initramfs.conf ]
+ then
+ update-initramfs -u
+ fi
fi
;;