Hi.
Depending on the config, the issue file may be printed twice. If both
/run/issue and /etc/issue exist, both are printed. I am not sure,
whether it is an intended behavior. And eventually it could be printed
three times.
It is caused by:
/* The default /etc/issue and optional /etc/issue.d directory as
* extension to the file. The /etc/issue.d directory is ignored if
* there is no /etc/issue file. The file may be empty or symlink.
*/
if (access(_PATH_ISSUE, F_OK|R_OK) == 0) {
issuefile_read(ie, _PATH_ISSUE, op, tp);
issuedir_read(ie, _PATH_ISSUEDIR, op, tp);
}
/* Fallback @runstatedir (usually /run) */
issuefile_read(ie, _PATH_RUNSTATEDIR "/" _PATH_ISSUE_FILENAME, op, tp);
issuedir_read(ie, _PATH_RUNSTATEDIR "/" _PATH_ISSUE_DIRNAME, op, tp);
/* Fallback @sysconfstaticdir (usually /usr/lib)*/
issuefile_read(ie, _PATH_SYSCONFSTATICDIR "/" _PATH_ISSUE_FILENAME,
op, tp);
issuedir_read(ie, _PATH_SYSCONFSTATICDIR "/" _PATH_ISSUE_DIRNAME,
op, tp);
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxxx
Křižíkova 148/34 (Corso IIa) tel: +420 284 084 060
186 00 Praha 8-Karlín fax: +420 284 084 001
Czech Republic http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76