blob: 7971a923a384d31f0be983558d2b57666a94a864 [file] [log] [blame]
#!/bin/bash
# add hostname to /etc/hosts if not set
if (! getent hosts `hostname` >/dev/null); then
echo `hostname -I` `hostname` >> /etc/hosts
fi