⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 recompile

📁 PPP协议的实现演示
💻
字号:
#!/bin/shexport CXXFLAGS="-D_REENTRANT"	mv configure configure.tmpcp configure.ori configure./configure --host i386 --target i386rm configuremv configure.tmp configuremake cleanclearecho "Peng lite 1.0.5"echo "---------------"echo if [ $LANG ];then	echo "Assuming language: $LANG"else	export LANG=eng	echo "Assuming default language: $LANG"fiecho echo "In this version you can conditinal compilation making"echo "(May not compile all drivers that you don't need)"echo echo "Do you want to actived this option ?"echo "answer by (y or n)"read Conditionnelleif [ "$Conditionnelle" = "y" ];then	echo "Conditional compilation"elif [ "$Conditionnelle" = "n" ]; then	echo "Standart compilation"else	echo "Sorry , i don't understand"	exit 1fiif [ "$Conditionnelle" = "y" ];then	echo "Do you want to use the modem driver ? (y/n)"	read Rep	if [ "$Rep" = "y" ];	then		echo "#define WITH_MODEM" >> config.h	fi	echo "Do you want to use the Cable driver ? (y/n)"	read Rep	if [ "$Rep" = "y" ];	then		echo "#define WITH_CABLE" >> config.h	fi	echo "Do you want to use the Ppp driver ? (y/n)"	read Rep	if [ "$Rep" = "y" ];	then		echo "#define WITH_PPP" >> config.h	fi	echo "Do you want to use the TunTap driver ? (y/n)"	read Rep	if [ "$Rep" = "y" ];	then		echo "#define WITH_TUNTAP" >> config.h	fi	echo "Do you want to use the Debug ? (y/n)"	echo "Warning ! that can slow down the connection"	read Rep	if [ "$Rep" = "y" ];	then		echo "#define WITH_DEBUG" >> config.h	fielse	echo "#define WITH_PPP" >> config.h	echo "#define WITH_MODEM" >> config.h	echo "#define WITH_TUNTAP" >> config.h	echo "#define WITH_CABLE" >> config.hfiecho '#define CONFIG_DIR "/etc/Pengaol"' >> config.hclear	echo "Please wait while Peng lite 1.0.5 is compiling -> make.log"echo " "echo "Peng's commands (log you as root to use peng)"echo ""echo "-a --adduser [login] [password]"echo "-c --connect [login]"echo "-d --deluser [login]"echo "-i --listdriver"echo "-k --kill"echo "-l --listuser"echo "-m --makeinit"echo "-r --restore"echo "-s --still"echo "-v --version"echo "-x --log"echo ""echo ""echo "Configuration files location: /etc/PengAol/"if make > make.log 2> make.log 	then	echo "Compilation, Ok"	else	echo "Compilation Error, please consult: make.log"	exit 1	fi# on change les droit de pengaol et on copieif [ -e "/etc/Pengaol" ]; 	then	chmod -R 600 /etc/Pengaol else	mkdir /etc/Pengaol	chmod -R 600 /etc/Pengaolficd pengchmod 700 pengif [ -e "/usr/bin/pengaol" ];	then	rm /usr/bin/pengaol	echo "Delete old Peng Binary, Ok"fiecho "pengaol binary: /usr/sbin/peng"cp peng /usr/sbin/pengcp ../Doc/PengMessages.txt /etc/Pengaolcp ../Doc/Dns /etc/Pengaolpeng -mcd ..#langue allemandeif echo $LANG | grep -q de 	then	echo "recompile has gefunden das sir ein deutch linux utilisieren"	echo "Wenn sie zum ein deutch aol server verbindet mochten"	echo "sir mussen am erte das /etc/Pengaol/PengAol.conf editieren"	echo "und im [CModemDriver] , ServerType=French bei ServerType=German anderen"	echo " "	echo "recompile at found german linux"	echo "If you want to a german aol server connecting"	echo "You must /etc/Pengaol/PengAol.conf edit"	echo "and in [CModemDriver] , ServerType=French with ServerType=German change"	fi#login passwordif peng -l | grep -q "No User" 	then	echo "You must at first add one user"	echo "Please enter your login"	read Login	echo "Please enter you password"	read PassWord	peng -a "$Login" "$PassWord"	fiecho "Installation Success"echo ""echo "Have a lot of fun !! "exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -