aboutsummarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authoryardenac2013-04-25 20:15:03 -0700
committeryar2015-07-03 16:58:24 -0700
commit83cfc9df8948e071efe70c74a99e10b8dd43aaec (patch)
tree086250dc5e349e0fc8e9fb2e043e998d52d1588e /install
parent20cb1aa7b657ba704964988dd3c4666580ba9bf9 (diff)
downloadaur-83cfc9df8948e071efe70c74a99e10b8dd43aaec.tar.gz
easier names for install & prefix
Diffstat (limited to 'install')
-rw-r--r--install26
1 files changed, 26 insertions, 0 deletions
diff --git a/install b/install
new file mode 100644
index 000000000000..3408a86603ae
--- /dev/null
+++ b/install
@@ -0,0 +1,26 @@
+# arg 1: the new package version
+# arg 2: the old package version
+
+KERNEL_NAME=-linode
+KERNEL_VERSION=3.8.8-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}
+ echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
+ mkinitcpio -p linux${KERNEL_NAME}
+}
+
+post_upgrade() {
+ echo ">>> Updating module dependencies. Please wait ..."
+ depmod ${KERNEL_VERSION}
+ echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
+ mkinitcpio -p linux${KERNEL_NAME}
+}
+
+post_remove() {
+ rm -f boot/initramfs-linux${KERNEL_NAME}.img
+ rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img
+}