hostlari_yenile
This commit is contained in:
		
							parent
							
								
									cb52dc46a2
								
							
						
					
					
						commit
						92ad44d534
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,10 +1,11 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					# /etc altındaki hosts dosyasını yeniler ve istenmeyen reklam ve sitelerden korunulur.
 | 
				
			||||||
cd /tmp
 | 
					cd /tmp
 | 
				
			||||||
#wget http://sbc.io/hosts/hosts
 | 
					#wget http://sbc.io/hosts/hosts
 | 
				
			||||||
wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
 | 
					wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
 | 
				
			||||||
mv /etc/hosts /tmp/hosts-eski
 | 
					mv /etc/hosts /tmp/hosts-eski
 | 
				
			||||||
mv hosts /etc/hosts
 | 
					mv hosts /etc/hosts
 | 
				
			||||||
 | 
					# eğer home dizini altında .hosts dosyanız varsa onu /etc/hosts dosyasına ekler.
 | 
				
			||||||
if [ -f ~/.hosts ]; then
 | 
					if [ -f ~/.hosts ]; then
 | 
				
			||||||
	cat ~/.hosts >> /etc/hosts
 | 
						cat ~/.hosts >> /etc/hosts
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue