HEX
Server: nginx/1.24.0
System: Linux ip-172-31-22-109 6.17.0-1012-aws #12~24.04.1-Ubuntu SMP Mon Apr 6 17:36:28 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //snap/core22/2339/usr/share/initramfs-tools/hooks/zz-dhclient
#!/bin/sh

PREREQ=""

prereqs()
{
	echo "$PREREQ"
}

case $1 in
prereqs)
	prereqs
	exit 0
	;;
esac

if [ ! -x /sbin/dhclient ]; then
	exit 0
fi

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

copy_exec /bin/run-parts
copy_exec /sbin/dhclient
copy_exec /sbin/dhclient-script
cp -a /usr/lib/initramfs-tools/etc/dhcp/ $DESTDIR/etc/dhcp/
copy_exec /etc/dhcp/dhclient-exit-hooks.d/rfc3442-classless-routes
mkdir -p $DESTDIR/var/lib/dhcp/