[Git-commits] [grml/grml-scripts] : grml-hostname: improve regex for hostname matching...

Michael Prokop mika at grml.org
Fri Jan 13 01:01:15 CET 2012


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-scripts
  Commit: 3ea7b7562e8e55bc5a1d81b561d494266e5f9845
      https://github.com/grml/grml-scripts/commit/3ea7b7562e8e55bc5a1d81b561d494266e5f9845
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-01-12 (Thu, 12 Jan 2012)

  Changed paths:
    M usr_sbin/grml-hostname

  Log Message:
  -----------
  grml-hostname: improve regex for hostname matching [Closes: issue1005]

Do not trust on output of hostname(1) as this might not
necessarily be what's used inside /etc/hosts. This
is supposed to work on Grml systems as well as on Debian.

While at it also use same formating WRT whitespace chars
when replacing the localhost line(s).





More information about the Git-commits mailing list