radare2rc, dwmcolors, vimrc
[dotfiles_afify.git] / .scripts / hostname.sh
blob6631fbc471ef2a6ca5307befe59b11ab574b54e6
1 #!/bin/sh
3 if [ "$(uname)" = "OpenBSD" ]; then
4 hostname openbsd && echo "openbsd" > /etc/myname &&\
5 printf "127.0.0.1\topenbsd\tlocalhost\n::1\t\topenbsd\tlocalhost\n" > /etc/hosts
7 elif [ "$(uname)" = "Linux" ]; then
8 hostname alien && echo "alien" > /etc/hostname &&\
9 printf "127.0.0.1\talien\tlocalhost\n::1\t\talien\tlocalhost\n" > /etc/hosts