#!/bin/bash
. get_root
IFS=
case $1 in
0) prefix= ;;
1) prefix='#' ;;
"") trap 'ytfb 0; exit' EXIT INT HUP; ytfb 1; read; exit 0;;
*) exit 1 ;;
esac
sed -i '
	/^#*127.0.0.1 youtube.com www.youtube.com$/{s/^#*/'$prefix'/;}
	/^#*127.0.0.1 facebook.com www.facebook.com$/{s/^#*/'$prefix'/;}
' /etc/hosts
