windvn/mods/legacy-initramfs/data/usr/local/bin/update-initramfs

12 lines
262 B
Plaintext
Raw Normal View History

2022-08-17 05:16:59 +00:00
#!/bin/bash
set -e
>&2 echo "Compressing modules ..."
for i in $(find /lib/modules -name "*.ko"); do
if [ "$(file "$i"|grep ELF)" != "" ]; then
>&2 echo "> $i ..."
2022-08-17 05:36:04 +00:00
xz -9 $i
2022-08-17 05:16:59 +00:00
mv $i.xz $i
fi
done
/usr/sbin/update-initramfs $*
exit $?