summaryrefslogtreecommitdiff
path: root/libre/linux-libre/linux-libre.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-03-02 21:06:45 -0200
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-03-02 21:06:45 -0200
commitdc129a165adba07b197c9644e95984e25c413f13 (patch)
tree4317200168ca0781583dd1a5f3873f0e4e436d61 /libre/linux-libre/linux-libre.install
parent62d9a0d6d90df36b4e490725c5c0fc429a3c7739 (diff)
parent6be2fb84fedb0602286ac30ce807d2894a189a9b (diff)
Merge ssh://parabolagnulinux.org:1863/abslibre
Diffstat (limited to 'libre/linux-libre/linux-libre.install')
-rw-r--r--libre/linux-libre/linux-libre.install12
1 files changed, 8 insertions, 4 deletions
diff --git a/libre/linux-libre/linux-libre.install b/libre/linux-libre/linux-libre.install
index f05e87b9f..62f5d13bc 100644
--- a/libre/linux-libre/linux-libre.install
+++ b/libre/linux-libre/linux-libre.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
@@ -50,8 +52,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() {