4 ms·
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/s
by agj 15y 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
- thyrsus 15y agoIt was a sad day when Red Hat removed the insults from sudo.