summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-lts-xen/linux-libre-lts-xen.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-14 15:52:19 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-14 15:52:19 -0300
commit7ee9751391e492ceacb57d2f585c84f3222d4c0d (patch)
tree2c0b48f01889136cb1ddf01b5357f22d5c19646f /kernels/linux-libre-lts-xen/linux-libre-lts-xen.install
parent8d47803cd03ed96fe201a77a2efdda04f5e43e1b (diff)
linux-libre-lts-xen-3.0.31-1: updating version
Diffstat (limited to 'kernels/linux-libre-lts-xen/linux-libre-lts-xen.install')
-rw-r--r--kernels/linux-libre-lts-xen/linux-libre-lts-xen.install16
1 files changed, 10 insertions, 6 deletions
diff --git a/kernels/linux-libre-lts-xen/linux-libre-lts-xen.install b/kernels/linux-libre-lts-xen/linux-libre-lts-xen.install
index 8510e226d..95b8d4e26 100644
--- a/kernels/linux-libre-lts-xen/linux-libre-lts-xen.install
+++ b/kernels/linux-libre-lts-xen/linux-libre-lts-xen.install
@@ -2,14 +2,16 @@
# arg 2: the old package version
KERNEL_NAME=-lts-xen
-KERNEL_VERSION=3.0.28-1-LIBRE-LTS-XEN
+KERNEL_VERSION=3.0.31-1-LIBRE-LTS-XEN
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}" = "-xen" ]; then
@@ -28,7 +30,7 @@ post_install () {
post_upgrade() {
pacman -Q grub &>/dev/null
hasgrub=$?
- pacman -Q grub2 &>/dev/null
+ pacman -Q grub2-common &>/dev/null
hasgrub2=$?
pacman -Q lilo &>/dev/null
haslilo=$?
@@ -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() {