up to 12 tty's

pull/5/head
xSmurf 9 years ago
parent c3af2f1a4d
commit 77d6bd3fb1

@ -13,15 +13,13 @@ else
fi fi
# Disable dropbear server # Disable dropbear server
if [ -e $TARGET_DIR/etc/init.d/S50dropbear ]; then
echo "Disabling dropbear server ..." echo "Disabling dropbear server ..."
chmod a-x $TARGET_DIR/etc/init.d/S50dropbear chmod a-x $TARGET_DIR/etc/init.d/S50dropbear
fi
# Enable virtual terminals in inittab # Enable virtual terminals in inittab
echo "Enabling virtual terminal 2..8 ..." echo "Enabling virtual terminal 2..12 ..."
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty8::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" for ii in {12..2}; do
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty7::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty'$ii'::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty6::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" done
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty5::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty4::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty3::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty2::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"

Loading…
Cancel
Save