Private
Server IP : 195.201.23.43  /  Your IP : 13.58.214.82
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/initramfs-tools/etc/dhcp/dhclient-enter-hooks.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /lib/initramfs-tools/etc/dhcp/dhclient-enter-hooks.d/config
#!/bin/sh

case "$reason" in
BOUND)
	{
		echo "DEVICE='$interface'"
		echo "PROTO='dhcp'"
		echo "IPV4PROTO='dhcp'"
		echo "IPV4ADDR='$new_ip_address'"
		echo "IPV4NETMASK='$new_subnet_mask'"
		echo "IPV4BROADCAST='$new_broadcast_address'"
		# Only keep the first router
		echo "IPV4GATEWAY='${new_routers%% *}'"
		i=0
		for name in $new_domain_name_servers; do
		    echo "IPV4DNS$i='$name'"
		    i=$((i+1))
		done
		echo "ROOTSERVER='${new_routers%% *}'"
		echo "HOSTNAME='$new_host_name'"
		echo "DNSDOMAIN='$new_domain_name'"
		if [ -n "$new_domain_search" ]; then
			if [ -n "$new_domain_name" ]; then
				domain_in_search_list=""
				for domain in $new_domain_search; do
					if [ "$domain" = "${new_domain_name}" ] ||
						[ "$domain" = "${new_domain_name}." ]; then
						domain_in_search_list="Yes"
					fi
				done
				if [ -z "$domain_in_search_list" ]; then
					new_domain_search="$new_domain_name $new_domain_search"
				fi
			fi
			echo "DOMAINSEARCH='${new_domain_search}'"
		elif [ -n "$new_domain_name" ]; then
			echo "DOMAINSEARCH='${new_domain_name}'"
		fi
	} >"/run/net-$interface.conf"
	;;
BOUND6)
	{
		echo "DEVICE6='$interface'"
		echo "IPV6PROTO='dhcp6'"
		echo "IPV6ADDR='$new_ip6_address'"
		echo "IPV6NETMASK='$new_ip6_prefixlen'"
		i=0
		for name in $new_dhcp6_name_servers; do
		    echo "IPV6DNS$i='$name'"
		    i=$((i+1))
		done
		if [ -n "$new_dhcp6_domain_search" ]; then
			echo "IPV6DOMAINSEARCH='$new_dhcp6_domain_search'"
		fi
	} >"/run/net6-$interface.conf"
	;;
esac

Private