diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-06-28 01:08:06 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-06-28 01:08:06 -0300 |
commit | efd3779d0b698daee3d1620ffa63f66c3cb249e7 (patch) | |
tree | cc005ce0d2509aef0bac3890cb1edbca038c987f /libre/linux-libre-lts/linux-libre-lts.install | |
parent | 93b4e351b297424bea9fb532259036d7a6607672 (diff) | |
parent | 2ecb70b29a4d14ebc72f8ec5f9026d350277b6de (diff) |
Merge branch 'master' of ssh://gparabola/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 | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/libre/linux-libre-lts/linux-libre-lts.install b/libre/linux-libre-lts/linux-libre-lts.install index 55ed9e496..4b6841658 100644 --- a/libre/linux-libre-lts/linux-libre-lts.install +++ b/libre/linux-libre-lts/linux-libre-lts.install @@ -2,14 +2,19 @@ # arg 2: the old package version KERNEL_NAME=-lts -KERNEL_VERSION=3.0.34-1-LIBRE-LTS +KERNEL_VERSION=3.0.36-1-LIBRE-LTS + +# set a sane PATH to ensure that critical utils like depmod will be found +export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' 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 +56,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() { |