diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/facebook | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/facebook b/bin/facebook new file mode 100755 index 0000000..baa843f --- /dev/null +++ b/bin/facebook @@ -0,0 +1,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 |