|
|
|
|
|
by agj
5525 days ago
|
|
Why such interest in this script? Besides being written in php, it's also a fairly kludgey approach to managing /etc/hosts. Is it the vulgarities? #!/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
|
|