Convert {small prefix}BSD to TERM=xterm as well.

Clean up the ttys files shipped with PicoBSD, NanoBSD and TinyBSD. While
there, it seems one of them still had references to sio(4). Make it in
sync with what we do in the base system.
This commit is contained in:
Ed Schouten 2009-11-13 11:32:14 +00:00
parent 4b2361f811
commit c0fe95bc1b
4 changed files with 36 additions and 36 deletions

View File

@ -8,19 +8,19 @@
# This entry needed for asking password when init goes to single-user mode # This entry needed for asking password when init goes to single-user mode
# If you want to be asked for password, change "secure" to "insecure" here # If you want to be asked for password, change "secure" to "insecure" here
#console none unknown off secure #console none unknown off secure
vga none cons25 off secure vga none xterm off secure
# #
ttyv0 "/usr/libexec/getty Pc" cons25 on secure ttyv0 "/usr/libexec/getty Pc" xterm on secure
# Virtual terminals # Virtual terminals
ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv1 "/usr/libexec/getty Pc" xterm on secure
ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" xterm on secure
ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" xterm on secure
ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" xterm on secure
ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" xterm on secure
ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" xterm on secure
ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" xterm on secure
#ttyv8 "/usr/libexec/getty Pc" cons25 on secure #ttyv8 "/usr/libexec/getty Pc" xterm on secure
#ttyv9 "/usr/libexec/getty Pc" cons25 on secure #ttyv9 "/usr/libexec/getty Pc" xterm on secure
# Pseudo terminals # Pseudo terminals
ttyp0 none network secure ttyp0 none network secure
ttyp1 none network secure ttyp1 none network secure

View File

@ -116,7 +116,7 @@ struct command bltins[]={
{"cd","Change working directory","cd [dir]","cd /etc",cd}, {"cd","Change working directory","cd [dir]","cd /etc",cd},
{"pwd","Print current directory","pwd","pwd",pwd}, {"pwd","Print current directory","pwd","pwd",pwd},
{"exit","Exit from shell()","exit","exit",xit}, {"exit","Exit from shell()","exit","exit",xit},
{"set","Set environment variable","set [VAR=value]","set TERM=cons25",set}, {"set","Set environment variable","set [VAR=value]","set TERM=xterm",set},
{"unset","Unset environment variable","unset VAR","unset EDITOR",unset}, {"unset","Unset environment variable","unset VAR","unset EDITOR",unset},
{"echo","Echo arguments on stdout","echo arg1 arg2 ...","echo Hello World!",echo}, {"echo","Echo arguments on stdout","echo arg1 arg2 ...","echo Hello World!",echo},
{"env","Print all environment variables","env","env",env}, {"env","Print all environment variables","env","env",env},
@ -572,7 +572,7 @@ start_session(int vty, int argc, char **argv)
if(fd>2) close(fd); if(fd>2) close(fd);
login_tty(fd); login_tty(fd);
setpgid(0,getpid()); setpgid(0,getpid());
putenv("TERM=cons25"); putenv("TERM=xterm");
putenv("HOME=/"); putenv("HOME=/");
putenv("PATH=/stand:/bin:/usr/bin:/sbin:."); putenv("PATH=/stand:/bin:/usr/bin:/sbin:.");
signal(SIGHUP,SIG_DFL); signal(SIGHUP,SIG_DFL);

View File

@ -15,7 +15,7 @@
# #
# type The initial terminal type for this port. For hardwired # type The initial terminal type for this port. For hardwired
# terminal lines, this will contain the type of terminal used. # terminal lines, this will contain the type of terminal used.
# For virtual consoles, the correct type is typically cons25, but # For virtual consoles, the correct type is typically xterm, but
# vt220 will work better if you need interoperability with other # vt220 will work better if you need interoperability with other
# systems like Solaris or GNU/Linux. # systems like Solaris or GNU/Linux.
# Other common values include network for network connections on # Other common values include network for network connections on
@ -32,15 +32,15 @@
# when going to single-user mode. # when going to single-user mode.
console none unknown off secure console none unknown off secure
# #
ttyv0 "/usr/libexec/getty Pc" cons25 on secure ttyv0 "/usr/libexec/getty Pc" xterm on secure
# Virtual terminals # Virtual terminals
ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv1 "/usr/libexec/getty Pc" xterm on secure
ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" xterm on secure
ttyv3 "/usr/libexec/getty Pc" cons25 off secure ttyv3 "/usr/libexec/getty Pc" xterm off secure
ttyv4 "/usr/libexec/getty Pc" cons25 off secure ttyv4 "/usr/libexec/getty Pc" xterm off secure
ttyv5 "/usr/libexec/getty Pc" cons25 off secure ttyv5 "/usr/libexec/getty Pc" xterm off secure
ttyv6 "/usr/libexec/getty Pc" cons25 off secure ttyv6 "/usr/libexec/getty Pc" xterm off secure
ttyv7 "/usr/libexec/getty Pc" cons25 off secure ttyv7 "/usr/libexec/getty Pc" xterm off secure
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
# Serial terminals # Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc. # The 'dialup' keyword identifies dialin lines to login, fingerd etc.

View File

@ -14,7 +14,7 @@
# #
# type The initial terminal type for this port. For hardwired # type The initial terminal type for this port. For hardwired
# terminal lines, this will contain the type of terminal used. # terminal lines, this will contain the type of terminal used.
# For virtual consoles, the correct type is typically cons25, but # For virtual consoles, the correct type is typically xterm, but
# vt220 will work better if you need interoperability with other # vt220 will work better if you need interoperability with other
# systems like Solaris or GNU/Linux. # systems like Solaris or GNU/Linux.
# Other common values include network for network connections on # Other common values include network for network connections on
@ -31,22 +31,22 @@
# when going to single-user mode. # when going to single-user mode.
console none unknown off secure console none unknown off secure
# #
ttyv0 "/usr/libexec/getty Pc" cons25 off secure ttyv0 "/usr/libexec/getty Pc" xterm off secure
# Virtual terminals # Virtual terminals
ttyv1 "/usr/libexec/getty Pc" cons25 off secure ttyv1 "/usr/libexec/getty Pc" xterm off secure
ttyv2 "/usr/libexec/getty Pc" cons25 off secure ttyv2 "/usr/libexec/getty Pc" xterm off secure
ttyv3 "/usr/libexec/getty Pc" cons25 off secure ttyv3 "/usr/libexec/getty Pc" xterm off secure
ttyv4 "/usr/libexec/getty Pc" cons25 off secure ttyv4 "/usr/libexec/getty Pc" xterm off secure
ttyv5 "/usr/libexec/getty Pc" cons25 off secure ttyv5 "/usr/libexec/getty Pc" xterm off secure
ttyv6 "/usr/libexec/getty Pc" cons25 off secure ttyv6 "/usr/libexec/getty Pc" xterm off secure
ttyv7 "/usr/libexec/getty Pc" cons25 off secure ttyv7 "/usr/libexec/getty Pc" xterm off secure
ttyv8 "/usr/X11R6/bin/xdm -nodaemoff" xterm off secure ttyv8 "/usr/local/bin/xdm -nodaemoff" xterm off secure
# Serial terminals # Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc. # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyd0 "/usr/libexec/getty std.9600" dialup on secure ttyu0 "/usr/libexec/getty std.9600" dialup on secure
ttyd1 "/usr/libexec/getty std.9600" dialup off secure ttyu1 "/usr/libexec/getty std.9600" dialup off secure
ttyd2 "/usr/libexec/getty std.9600" dialup off secure ttyu2 "/usr/libexec/getty std.9600" dialup off secure
ttyd3 "/usr/libexec/getty std.9600" dialup off secure ttyu3 "/usr/libexec/getty std.9600" dialup off secure
# Dumb console # Dumb console
dcons "/usr/libexec/getty std.9600" vt100 off secure dcons "/usr/libexec/getty std.9600" vt100 off secure
# Pseudo terminals # Pseudo terminals