🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: at.fido.linux
Article #1975

agetty und console-options?

#1975
From: Stefan Traby
Date: Fri, 26 Jan 1996 00:00
29 lines
1400 bytes
Hallo Markus!

Replying to a message of Markus Schanovsky to All:

 MS> Muss ich nach jedem login auf jeder Konsole abfragem, ob es die ttyS1
 MS> ist und dann ein stty columns 132 machen oder kann man das eleganter?
 MS> Es soll nicht vom User abhaengen, sondern vom Terminal!

Nimm folgendes und passe es fuer Dich an. (AWK sehe man mir nach)
(Ach ja, in /etc/profile koennte es recht gut passen)

special="tty2 tty3 tty4 tty5 tty6"
#
myterm=`who am i |awk --source="{print \\$2}"`
seppl=0
for i in $special ; do
 if [ "$i" = "$myterm" ]; then
  echo special terminal $i ; seppl=1
  # put your commands here 
 fi
done
if [ "$seppl" = "0" ]; then
  echo nonspecial terminal $myterm
  # put your commands here
fi
unset myterm seppl i

ciao -
   Stefan
Technical Details
Message-ID: <MSGID_2=3A316=2F316_31094570@fidonet>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MSGID_2=3A310=2F38_3106bc10@fidonet>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109314,c35e568e4398087a,start
X-Google-Attributes: gid109314,public
From: Stefan.Traby@2-316-316-0.st.co.at (Stefan Traby)
Subject: agetty und console-options?
Date: 1996/01/26
Message-ID: <MSGID_2=3A316=2F316_31094570@fidonet>
X-Deja-AN: 137174387
x-ftn-origin: hmpf  (2:316/316)
references: <MSGID_2=3A310=2F38_3106bc10@fidonet>
x-comment-to: (Markus Schanovsky)
x-ftn-tearline: FleetStreet 1.04 NR
organization: Fido-Internet Gateway. Email to gateinfo@st.co.at for info.
x-gateway: FIDO .. st.co.at [FIDOGATE 3.9.5]
newsgroups: at.fido.linux