From 92ad44d53410d4d320b373b692aad9e4f855defc Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 20 Apr 2017 05:28:06 +0300 Subject: [PATCH] hostlari_yenile --- bin/hostlari_yenile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/hostlari_yenile b/bin/hostlari_yenile index 635b84ce4..cb48ef529 100755 --- a/bin/hostlari_yenile +++ b/bin/hostlari_yenile @@ -1,10 +1,11 @@ #!/bin/bash - +# /etc altındaki hosts dosyasını yeniler ve istenmeyen reklam ve sitelerden korunulur. cd /tmp #wget http://sbc.io/hosts/hosts wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts mv /etc/hosts /tmp/hosts-eski mv hosts /etc/hosts +# eğer home dizini altında .hosts dosyanız varsa onu /etc/hosts dosyasına ekler. if [ -f ~/.hosts ]; then cat ~/.hosts >> /etc/hosts fi