blob: 00ecdcc1073b349c4330ed3d28395dd4fa0e6960 (
plain)
1
2
3
4
5
6
7
|
#! /bin/bash
line="127.0.0.1 www.facebook.com"
if grep -q "www.facebook.com" /etc/hosts; then
zenity --password | sudo -S bash -c "sed -i '/www.facebook.com/d' /etc/hosts"
else
zenity --password | sudo -S bash -c "echo ${line} >> /etc/hosts"
fi
|