summaryrefslogtreecommitdiff
path: root/legacy/mkinitfs/mkinitfs.trigger
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-23 19:31:59 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-23 19:31:59 +0000
commit7749175e007b4fbd53d08b712201ecf27f173aec (patch)
treef48382f894dc4af4afa3c65af9e3b66fdb7f1934 /legacy/mkinitfs/mkinitfs.trigger
parent348791237928aa54acc58bfc9e52a419dcec328d (diff)
downloadpackages-7749175e007b4fbd53d08b712201ecf27f173aec.tar.gz
packages-7749175e007b4fbd53d08b712201ecf27f173aec.tar.bz2
packages-7749175e007b4fbd53d08b712201ecf27f173aec.tar.xz
packages-7749175e007b4fbd53d08b712201ecf27f173aec.zip
legacy/: remove permanently dead packages
Diffstat (limited to 'legacy/mkinitfs/mkinitfs.trigger')
-rw-r--r--legacy/mkinitfs/mkinitfs.trigger33
1 files changed, 0 insertions, 33 deletions
diff --git a/legacy/mkinitfs/mkinitfs.trigger b/legacy/mkinitfs/mkinitfs.trigger
deleted file mode 100644
index e8acc9785..000000000
--- a/legacy/mkinitfs/mkinitfs.trigger
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-for i in "$@"; do
- # get last element in path
- flavor=${i##*/}
- if ! [ -f "$i"/kernel.release ]; then
- # kernel was uninstalled
- rm -f $( readlink -f /boot/initramfs-$flavor ) \
- /boot/initramfs-$flavor /boot/vmlinuz-$flavor \
- /boot/$flavor /boot/$flavor.gz /$flavor /$flavor.gz
- continue
- fi
- abi_release=$(cat "$i"/kernel.release)
- initfs=initramfs-$flavor
- mkinitfs -o /boot/$initfs $abi_release
-done
-
-# extlinux will use path relative partition, so if /boot is on a
-# separate partition we want /boot/<kernel> resolve to /<kernel>
-if ! [ -e /boot/boot ]; then
- ln -sf . /boot/boot
-fi
-
-# cleanup unused initramfs
-for i in /boot/initramfs-[0-9]*; do
- [ -f $i ] || continue
- if ! [ -f /boot/vmlinuz-${i#/boot/initramfs-} ]; then
- rm "$i"
- fi
-done
-
-sync
-exit 0