diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-04 17:33:56 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-04 17:33:56 -0500 |
commit | 52da029144be979ab29307f7456478a11451b4eb (patch) | |
tree | 95744c891fe606f88c893da7b31bfdef656a5931 /libre/linux-libre/linux-libre.install | |
parent | 31bada44e336927d2c9bcb99f1acabb69ce8b6a4 (diff) | |
parent | 00a330d6e292702ccdfe4813d261f4ac6397a802 (diff) | |
download | abslibre-52da029144be979ab29307f7456478a11451b4eb.tar.gz abslibre-52da029144be979ab29307f7456478a11451b4eb.tar.bz2 abslibre-52da029144be979ab29307f7456478a11451b4eb.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/abslibre
Diffstat (limited to 'libre/linux-libre/linux-libre.install')
-rw-r--r-- | libre/linux-libre/linux-libre.install | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libre/linux-libre/linux-libre.install b/libre/linux-libre/linux-libre.install index 6e3e16986..ea00c881c 100644 --- a/libre/linux-libre/linux-libre.install +++ b/libre/linux-libre/linux-libre.install @@ -2,14 +2,16 @@ # arg 2: the old package version KERNEL_NAME= -KERNEL_VERSION=3.2.7-1-LIBRE +KERNEL_VERSION=3.2.9-1-LIBRE 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() { |