[RH7.1] inlogboodschap veranderen

Pagina: 1
Acties:

  • asusk7m550
  • Registratie: Oktober 2000
  • Laatst online: 07-05 10:11

asusk7m550

Athlon 550@500

Topicstarter
Ik draai redhat 7.1.
En ik heb net een kernel update gedaan.
Maar nu staat er in mijn inlogboodschap (die regeltjes met tekst als je op de console inlogt) nog steeds de oude kernel.
Staat dit standaart ergens in een text bestandje ofzo.

Ik merkte dat de kernel update wel was gedaan want met uname -a zag ik dat ik de nieuwe kernel gebruikte

It takes only a minute to get a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone.


  • bruto
  • Registratie: Juni 2001
  • Laatst online: 22-11-2025

bruto

Druktemaker.

vi /etc/motd

The more you know, the more you know you don't know.


  • moto-moi
  • Registratie: Juli 2001
  • Laatst online: 09-06-2011

moto-moi

Ja, ik haat jou ook :w

Dat staat in /etc/issue

Alleen zul je merken, dat zodra je deze wijzigd, en reboot, dat 'ie dan weer veranderd (RedHat logica is dat :P ), ergens in /etc/init.d staat een file die ervoor verantwoordelijk is, even zoeken daar, dan blijft het permanent goed staan.
Er is nog een makkelijkere manier, zie de manpage :
[b]DESCRIPTION[b]
The file /etc/issue is a text file which contains a message or system
identification to be printed before the login prompt. It may contain
various @char and \char sequences, if supported by getty(1).
oftewel, we worden doorgestuurd naar getty :P
ISSUE ESCAPES
The issue-file (/etc/issue or the file set with the -f option) may con-
tain certain escape codes to display the system name, date and time
etc. All escape codes consist of a backslash (\) immediately followed
by one of the letters explained below.

b Insert the baudrate of the current line.

d Insert the current date.

s Insert the system name, the name of the operating system.

l Insert the name of the current tty line.

m Insert the architecture identifier of the machine, eg. i486

n Insert the nodename of the machine, also known as the hostname.

o Insert the domainname of the machine.

r Insert the release number of the OS, eg. 1.1.9.

t Insert the current time.

u Insert the number of current users logged in.

U Insert the string "1 user" or "<n> users" where <n> is the num-
ber of current users logged in.

v Insert the version of the OS, eg. the build-date etc.

Example: On my system, the following /etc/issue file:

This is \n.\o (\s \m \r) \t

displays as

This is thingol.orcan.dk (Linux i386 1.1.9) 18:29:30

God, root, what is difference? | Talga Vassternich | IBM zuigt


Verwijderd

Titelfix.