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