diff --git a/mkmotd/mkmotd.pl b/mkmotd/mkmotd.pl index 82d18a0..196537c 100755 --- a/mkmotd/mkmotd.pl +++ b/mkmotd/mkmotd.pl @@ -9,6 +9,8 @@ my ($os_release) = `/bin/os-release`; chomp($os_release); +my @hostconfig = split " ",`hostconfig`; + our $TEMPLATE; if ( $os_release eq 'mariux_x86_64' || $os_release eq 'mariux_i686' ) { @@ -41,7 +43,7 @@ EOF - $TEMPLATE .= " / to bee or not to bee / tags: ".`hostconfig`."\n"; + $TEMPLATE .= " / to bee or not to bee / tags: ".join(" ",@hostconfig)."\n"; } else { die "$os_release : unknown os_release\n"; @@ -61,7 +63,6 @@ sub readstr { sub policy { # policy('theinternet') --> ('zeile1,'zeile2',....) my ($hostname) = @_; - my @hostconfig=split(/ |\n/, `hostconfig`); open IN, '<', '/etc/mxpolicy' or return (); my @out; while () {