up to 12 tty's

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

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

Loading…
Cancel
Save