tazpanel diff hosts.cgi @ rev 554
Add file chooser (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 23 12:08:42 2015 +0100 (2015-11-23) |
parents | 34508d2309a6 |
children | a15373a181ff |
line diff
1.1 --- a/hosts.cgi Sun Aug 30 23:04:04 2015 +0300 1.2 +++ b/hosts.cgi Mon Nov 23 12:08:42 2015 +0100 1.3 @@ -79,7 +79,7 @@ 1.4 cat "$hostsnew" >> /etc/hosts 1.5 rm "$hostsnew" 1.6 1.7 - # Prevent user-disabled entries to re-appeare 1.8 + # Prevent user-disabled entries to re-appear 1.9 grep "^#0.0.0.0" /etc/hosts | while read null host; do 1.10 sed -i "/^0.0.0.0 $host #/d" /etc/hosts 1.11 done