diff options
author | yardenac | 2013-10-05 11:09:38 -0700 |
---|---|---|
committer | yar | 2015-07-03 16:58:29 -0700 |
commit | c18aba0020103dc582e43b1a44d138b219539470 (patch) | |
tree | a6e47a4b66e1256a93c79f1e71e121403e942c0e /install | |
parent | e4309f4f12bc48257e29a829b82e926023b2a0b1 (diff) | |
download | aur-c18aba0020103dc582e43b1a44d138b219539470.tar.gz |
stop using KERNEL_VERSION in install scripts
one less file to bump
not sure what weird scenarios would cause this to break ... someone who hand-edits the source line without editing the pkgver/pkgrel??
Diffstat (limited to 'install')
-rw-r--r-- | install | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,14 +1,10 @@ -# arg 1: the new package version -# arg 2: the old package version - KERNEL_NAME=-linode -KERNEL_VERSION=3.11.4-1-linode export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' post_install () { echo ">>> Updating module dependencies. Please wait ..." - depmod ${KERNEL_VERSION} + depmod ${1##*:}${KERNEL_NAME} echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux${KERNEL_NAME} } @@ -16,7 +12,7 @@ post_install () { post_upgrade() { rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img echo ">>> Updating module dependencies. Please wait ..." - depmod ${KERNEL_VERSION} + depmod ${1##*:}${KERNEL_NAME} echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux${KERNEL_NAME} } |