summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-xen/linux-libre-xen.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-14 14:57:59 -0300
committerAndré Fabian Silva Delgado <andre@pc-01.localdomain>2012-06-14 14:57:59 -0300
commita4893dcb3740590f221afd93bf2ff5c5b401d32e (patch)
tree5ddf2f89bbb216cf1418ad3d6c57479c7880ca36 /kernels/linux-libre-xen/linux-libre-xen.install
parent4a9007ba3b311b4260392b9a3b6ba8f7ae99cf87 (diff)
downloadabslibre-a4893dcb3740590f221afd93bf2ff5c5b401d32e.tar.gz
abslibre-a4893dcb3740590f221afd93bf2ff5c5b401d32e.tar.bz2
abslibre-a4893dcb3740590f221afd93bf2ff5c5b401d32e.zip
linux-libre-xen-3.3.6-1: updating version with fixed issues and unnecessary files deleted
Diffstat (limited to 'kernels/linux-libre-xen/linux-libre-xen.install')
-rw-r--r--kernels/linux-libre-xen/linux-libre-xen.install16
1 files changed, 10 insertions, 6 deletions
diff --git a/kernels/linux-libre-xen/linux-libre-xen.install b/kernels/linux-libre-xen/linux-libre-xen.install
index 06c1f6ae8..013ea1d37 100644
--- a/kernels/linux-libre-xen/linux-libre-xen.install
+++ b/kernels/linux-libre-xen/linux-libre-xen.install
@@ -2,14 +2,16 @@
# arg 2: the old package version
KERNEL_NAME=-xen
-KERNEL_VERSION=3.3.2-1-LIBRE-XEN
+KERNEL_VERSION=3.3.6-1-LIBRE-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() {