d44735b0b3
That way be get the pve banner for all spanned getty. We also create /etc/lsb-base-logging.sh and set FANCYTTY=0, because this work better wit bootlogd (no control characters in /var/log/boot.
40 lines
550 B
Perl
Executable File
40 lines
550 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use PVE::INotify;
|
|
use PVE::Cluster;
|
|
|
|
my $nodename = PVE::INotify::nodename();
|
|
my $localip = PVE::Cluster::remote_node_ip($nodename, 1);
|
|
|
|
|
|
my $xline = '-' x 78;
|
|
|
|
my $banner = '';
|
|
|
|
if ($localip) {
|
|
$banner .= <<__EOBANNER;
|
|
|
|
$xline
|
|
|
|
Welcome to the Proxmox Virtual Environment. Please use your web browser to
|
|
configure this server - connect to:
|
|
|
|
https://${localip}:8006/
|
|
|
|
$xline
|
|
|
|
__EOBANNER
|
|
|
|
}
|
|
|
|
$banner .= "Debian GNU/Linux 7.0 \\n \\l\n\n";
|
|
|
|
open(ISSUE, ">/etc/issue");
|
|
|
|
print ISSUE $banner;
|
|
|
|
close(ISSUE);
|
|
|
|
exit (0);
|