diff options
author | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-06-15 02:53:19 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-06-15 02:53:19 -0300 |
commit | 8a89f7ebd6c48f867dc8d2100e4bb15be2142e38 (patch) | |
tree | e5e5a766776c364973bd63a48c0768cf7ec0bedb /libre/linux-libre-lts/linux-libre-lts.install | |
parent | cc7a13a496eec533871b51c90869bc420c90a481 (diff) | |
parent | f3dc42cd5e42eb58648259677261c77b5ec2d46a (diff) |
Merge ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/linux-libre-lts/linux-libre-lts.install')
-rw-r--r-- | libre/linux-libre-lts/linux-libre-lts.install | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libre/linux-libre-lts/linux-libre-lts.install b/libre/linux-libre-lts/linux-libre-lts.install index 55ed9e496..ba3511bcf 100644 --- a/libre/linux-libre-lts/linux-libre-lts.install +++ b/libre/linux-libre-lts/linux-libre-lts.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}" = "-lts" ]; 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() { |