[scripts] mkloopcard*: make sure to not duplicate any ^s0 entry in /etc/inittab

This commit is contained in:
Fabio Erculiani 2012-03-03 12:37:20 +01:00
parent fdfac62bdb
commit 14b2787216
3 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,7 @@ setup_users() {
setup_serial() {
# setup serial login
sed -i "s:^s0.*::" /etc/inittab
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO2 vt100" >> /etc/inittab
}

View File

@ -51,6 +51,7 @@ setup_startup_caches() {
setup_serial() {
# Setup serial login
sed -i "s:^s0.*::" /etc/inittab
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
}

View File

@ -89,6 +89,7 @@ setup_users() {
setup_serial() {
# setup serial login
sed -i "s:^s0.*::" /etc/inittab
echo "s0:12345:respawn:/sbin/agetty 115200 ttymxc0 vt100" >> /etc/inittab
echo "ttymxc0" >> /etc/securetty
}