summaryrefslogtreecommitdiff
path: root/system/mkinitfs/mkinitfs.trigger
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-14 01:58:53 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-14 01:58:53 +0000
commite96aa174860614b69b9e8f084b3f0cbe214163c1 (patch)
treef50a183ed97b5cb2cb02e80bc408ce5b6a48ec61 /system/mkinitfs/mkinitfs.trigger
parent6222744c490dc72725976f1fe3024742c16e34ee (diff)
downloadpackages-e96aa174860614b69b9e8f084b3f0cbe214163c1.tar.gz
packages-e96aa174860614b69b9e8f084b3f0cbe214163c1.tar.bz2
packages-e96aa174860614b69b9e8f084b3f0cbe214163c1.tar.xz
packages-e96aa174860614b69b9e8f084b3f0cbe214163c1.zip
system/mkinitfs: delete from repository
Diffstat (limited to 'system/mkinitfs/mkinitfs.trigger')
-rw-r--r--system/mkinitfs/mkinitfs.trigger33
1 files changed, 0 insertions, 33 deletions
diff --git a/system/mkinitfs/mkinitfs.trigger b/system/mkinitfs/mkinitfs.trigger
deleted file mode 100644
index e8acc9785..000000000
--- a/system/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