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