summaryrefslogtreecommitdiff
path: root/libre/linux-libre-lts/linux-libre-lts.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-12 18:21:06 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-12 18:21:06 -0300
commit2890c32a0f80a55893fb3b182db6c58ea8215a32 (patch)
treeac4548cd44d2bb688cd86a7bf76221f625b47fac /libre/linux-libre-lts/linux-libre-lts.install
parent9ac40614dd4a52b0af5c1c521fe644ccb2d32c9d (diff)
downloadabslibre-2890c32a0f80a55893fb3b182db6c58ea8215a32.tar.gz
abslibre-2890c32a0f80a55893fb3b182db6c58ea8215a32.tar.bz2
abslibre-2890c32a0f80a55893fb3b182db6c58ea8215a32.zip
linux-libre-3.0.34-1: updating version and fixing linux-libre.install for mips64el
Diffstat (limited to 'libre/linux-libre-lts/linux-libre-lts.install')
-rw-r--r--libre/linux-libre-lts/linux-libre-lts.install12
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() {