diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-06-12 17:45:53 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-06-12 17:45:53 -0300 |
commit | aa3bf38902a10744b2cad6dca926095bce6a6799 (patch) | |
tree | dfec091cde540cbe7ecf85fc0cdb8c479361a668 | |
parent | 265dda80d0d6cc59f5953ed104abbd075456d841 (diff) | |
download | abslibre-aa3bf38902a10744b2cad6dca926095bce6a6799.tar.gz abslibre-aa3bf38902a10744b2cad6dca926095bce6a6799.tar.bz2 abslibre-aa3bf38902a10744b2cad6dca926095bce6a6799.zip |
linux-libre-3.4.2-2: fixing linux-libre.install
-rw-r--r-- | libre/linux-libre/linux-libre.install | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libre/linux-libre/linux-libre.install b/libre/linux-libre/linux-libre.install index 985ebf0c7..d71020483 100644 --- a/libre/linux-libre/linux-libre.install +++ b/libre/linux-libre/linux-libre.install @@ -8,6 +8,8 @@ post_install () { # updating module dependencies echo ">>> Updating module dependencies. Please wait ..." depmod ${KERNEL_VERSION} + if command -v mkinitcpio 2>&1 > /dev/null; then + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux-libre${KERNEL_NAME} @@ -51,6 +53,8 @@ post_upgrade() { # updating module dependencies echo ">>> Updating module dependencies. Please wait ..." depmod ${KERNEL_VERSION} + if command -v mkinitcpio 2>&1 > /dev/null; then + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux-libre${KERNEL_NAME} } |