diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-06-14 15:07:03 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-06-14 15:07:03 -0300 |
commit | 2d4ee9e83b0f5da8f9c009e0e23c3bc5498d272f (patch) | |
tree | a703450de0bb2e044c7833a5412eb8fc9d28ec72 | |
parent | a4893dcb3740590f221afd93bf2ff5c5b401d32e (diff) | |
download | abslibre-2d4ee9e83b0f5da8f9c009e0e23c3bc5498d272f.tar.gz abslibre-2d4ee9e83b0f5da8f9c009e0e23c3bc5498d272f.tar.bz2 abslibre-2d4ee9e83b0f5da8f9c009e0e23c3bc5498d272f.zip |
linux-libre-rt: fixing linux-libre-rt.install
-rw-r--r-- | kernels/linux-libre-rt/linux-libre-rt.install | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/kernels/linux-libre-rt/linux-libre-rt.install b/kernels/linux-libre-rt/linux-libre-rt.install index 407bf32c1..698814cdc 100644 --- a/kernels/linux-libre-rt/linux-libre-rt.install +++ b/kernels/linux-libre-rt/linux-libre-rt.install @@ -8,8 +8,10 @@ post_install () { # updating module dependencies echo ">>> Updating module dependencies. Please wait ..." depmod ${KERNEL_VERSION} - echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." - mkinitcpio -p linux-libre${KERNEL_NAME} + if command -v mkinitcpio 2>&1 > /dev/null; then + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux-libre${KERNEL_NAME} + fi # compat symlinks for the official kernels only if [ -z "${KERNEL_NAME}" -o "${KERNEL_NAME}" = "-rt" ]; then @@ -51,8 +53,10 @@ post_upgrade() { # updating module dependencies echo ">>> Updating module dependencies. Please wait ..." depmod ${KERNEL_VERSION} - echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." - mkinitcpio -p linux-libre${KERNEL_NAME} + if command -v mkinitcpio 2>&1 > /dev/null; then + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux-libre${KERNEL_NAME} + fi } post_remove() { |