|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /proc/self/root/usr/share/initramfs-tools/hooks/ |
Upload File : |
#!/bin/sh
prereqs()
{
if [ "${BUSYBOX}" = "n" ] || [ -z "${BUSYBOXDIR}" ]; then
echo ''
else
# Ensure busybox installs all its commands before
# checking what we should provide
echo zz-busybox
fi
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
for src in /usr/lib/klibc/bin/*; do
command="$(basename "$src")"
case "$command" in
gzip | kinit | zcat)
# Don't install; these will not be needed
;;
*)
# Don't install commands that already exist in /bin or /sbin
if ! [ -e "${DESTDIR}/sbin/$command" ]; then
cp -pnL "$src" "${DESTDIR}/bin"
fi
;;
esac
done
cp -pL /lib/klibc-*.so "${DESTDIR}/lib"