by agj · 15y ago · 0 comments
#!/bin/sh
[ $UID -eq 0 ] || { echo "You're not root, asshole."; exit 1; }
[ -f "/etc/hosts.$1" ] || { echo "/etc/hosts.$1 doesn't exist, asshole."; exit 1; }
cat /etc/hosts.{$1,tail} > /etc/hosts
... sudo ~/bin/stopfuckingoff play