Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /usr/share/initramfs-tools/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : //usr/share/initramfs-tools/hooks/klibc
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
	prereqs
	exit 0
	;;
esac

# klibc
cp -pnL /usr/lib/klibc/bin/* ${DESTDIR}/bin
cp -pL /lib/klibc-*.so ${DESTDIR}/lib
rm -f ${DESTDIR}/bin/kinit* ${DESTDIR}/bin/zcat
if [ "${BUSYBOX}" = "n" ] || [ ! -e ${BUSYBOXDIR}/busybox ]; then
	if [ -e ${DESTDIR}/bin/sh.shared ]; then
		# Some platforms build a shared klibc/sh:
		mv ${DESTDIR}/bin/sh.shared ${DESTDIR}/bin/sh
	elif [ -e /usr/lib/klibc/bin/sh ]; then
		# Others build a static version instead:
		cp -pL /usr/lib/klibc/bin/sh ${DESTDIR}/bin/sh
	fi
else
	# Nobody wanted it, so save a tiny bit of space:
	rm -f ${DESTDIR}/bin/sh.shared
fi

Samx