All pastes #1205101 Raw Edit

clueless

public text v1 · immutable
#1205101 ·published 2008-09-18 17:14 UTC
rendered paste body
#!/bin/bash# seqizz ulayyn :PYELLOW=$'\e[33;01m'NORMAL=$'\e[0m'GREEN=$'\e[32;01m' RED=$'\e[31;01m' echo_yesil() {        echo -e "${GREEN}${*}${NORMAL}"} echo_sari() {        echo -e -n "${YELLOW}${*}${NORMAL}"} echo_kirmizi() {        echo -e "${RED}${*}${NORMAL}"} echo_yesil "programın adını girin"read programecho_yesil "program aranıyor"whereis $programecho_sari "programın yolu ya da yollarından biri:"whereis $program | awk '{print $2}'echo_kirmizi "Onaylıyor musunuz? (e/H)"read yesnoif [ $yesno = "e" ]; then	hedef=`whereis $program | awk '{print $2}'`	ldd $hedef | awk '{print $3}' | sed '1,1d' > /tmp/deneme8_89	echo_kirmizi "şu dosyalar bulundu:"	cat /tmp/deneme8_89	echo_kirmizi "her satırın önemi var (boş satırlar hariç), düzenlemek ister misiniz? (e/H)"	read yesnop	if [ $yesnop = "e" ]; then		nano /tmp/deneme8_89		echo_yesil "düzenlenmiş hali:"		cat /tmp/deneme8_89	fi	echo_kirmizi "bu halini onaylıyor musunuz? (e/H)"	read yesnope	if [ $yesnope = "e" ]; then		echo_yesil "Hangi alana yüklemek istersiniz? Boot için b'ye, default için d'ye basın.. (b/d)"		read bd		if [ $bd = "b" ]; then			cat /tmp/deneme8_89 >> /etc/readahead-list/runlevel-boot		fi		if [ $bd = "d" ]; then			cat /tmp/deneme8_89 >> /etc/readahead-list/runlevel-default		fi		echo_yesil "birbirinin aynısı olan ve boş olan satırlar kesiliyor.."		cat /etc/readahead-list/runlevel-default | sed '$!N; /^\(.*\)\n\1$/!P; D' | sed '/^$/d'> /tmp/defgecici		mv /tmp/defgecici /etc/readahead-list/runlevel-default		cat /etc/readahead-list/runlevel-boot | sed '$!N; /^\(.*\)\n\1$/!P; D' | sed '/^$/d' > /tmp/btgecici		mv /tmp/btgecici /etc/readahead-list/runlevel-boot	fi	if [ $? -eq 0 ]; then		echo_yesil "Tamamlandı :)"	fifi