Mercurial > masqmail
view admin/guess-hostname @ 434:f2a7271746d1 default tip
Removes Freshmeat.net from the docs
The site, which was later renamed to freecode.com, is no longer
maintained (contains only a static copy).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 07 Feb 2015 11:45:07 +0100 |
parents | cab46cefa4ce |
children |
line wrap: on
line source
#!/bin/sh # # try several ways to guess the hostname # earlier output lines are probably better ( # this is what Debian uses cat /etc/mailname # probably a good value on GNU/Linux hostname -f # this is often the short hostname cat /etc/hostname # often the short hostname, but widely available hostname # this file was mentioned on the Internet cat /etc/HOSTNAME ) 2>/dev/null | uniq exit 0