diff options
Diffstat (limited to 'debian/open-infrastructure-system-boot.postrm')
-rwxr-xr-x | debian/open-infrastructure-system-boot.postrm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/open-infrastructure-system-boot.postrm b/debian/open-infrastructure-system-boot.postrm index 5c7cdf7..a8b2d76 100755 --- a/debian/open-infrastructure-system-boot.postrm +++ b/debian/open-infrastructure-system-boot.postrm @@ -7,9 +7,12 @@ case "${1}" in rmdir --ignore-fail-on-non-empty /etc/live/boot > /dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty /etc/live > /dev/null 2>&1 || true - 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 ;; |