13 lines
313 B
Bash
Executable File
13 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# This script does two things:
|
|
#
|
|
# 1. Sets the console type for the first terminal to 'console'.
|
|
# 2. Comments out all virtual terminals which aren't on the first console.
|
|
#
|
|
# Steve
|
|
# --
|
|
# http://www.steve.org.uk/
|
|
|
|
sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' $1/etc/inittab
|