Please support VectorLinux!

Author Topic: How is /etc/issue generated?  (Read 1415 times)

toothandnail

  • Tester
  • Vectorian
  • ****
  • Posts: 2527
How is /etc/issue generated?
« on: May 25, 2008, 11:40:21 am »
Possibly a silly question. I want to customize the console login prompt, which appears to be produced by the file /etc/issue. However, if I move or rename the file, it is regenerated. So, can anyone tell me where it is produced so I can make changes there?

paul.

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: How is /etc/issue generated?
« Reply #1 on: May 25, 2008, 01:40:40 pm »
Look at /etc/profile

Bigpaws

toothandnail

  • Tester
  • Vectorian
  • ****
  • Posts: 2527
Re: How is /etc/issue generated?
« Reply #2 on: May 26, 2008, 05:05:20 am »
Look at /etc/profile

 ;D If its there, its well concealed. I've had a look through all the scripts in /etc/profile.d, plus everywhere else I can think of. Not found it so far....

paul

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: How is /etc/issue generated?
« Reply #3 on: May 26, 2008, 08:13:44 am »
it is generated in /etc/rc.d/rc.local
Code: [Select]
# Setting up Linux logo text
if [ "$INSTALL_DATE" ]; then
   linux_logo -c -t "Operating since $INSTALL_DATE" > /etc/issue
else
   linux_logo -c -t "Brought to you by Vector-Linux" > /etc/issue
fi

toothandnail

  • Tester
  • Vectorian
  • ****
  • Posts: 2527
Re: How is /etc/issue generated?
« Reply #4 on: May 26, 2008, 10:35:19 am »
it is generated in /etc/rc.d/rc.local
Code: [Select]
# Setting up Linux logo text
if [ "$INSTALL_DATE" ]; then
   linux_logo -c -t "Operating since $INSTALL_DATE" > /etc/issue
else
   linux_logo -c -t "Brought to you by Vector-Linux" > /etc/issue
fi

Great, thanks. I would never have spotted that.

paul