aboutsummarylogtreecommitdiffstats
path: root/install
blob: ef4c3b27de0128970126a2fd50470af442fdec31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
KERNEL_NAME=-linode

export PATH='/usr/local/sbin:/usr/local/bin:/usr/bin'

post_install () {
  echo ">>> Updating module dependencies. Please wait ..."
  depmod ${1##*:}${KERNEL_NAME}
  echo ">>> Generating initial ramdisk, using mkinitcpio.  Please wait..."
  mkinitcpio -p linux${KERNEL_NAME}
}

post_upgrade() {
  rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img
  echo ">>> Updating module dependencies. Please wait ..."
  depmod ${1##*:}${KERNEL_NAME}
  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
}