Fixed inittab changes on rebuild

pull/5/head
xSmurf 9 years ago
parent c2f4c22616
commit e950c8cf66

@ -28,11 +28,15 @@ if [ -e $TARGET_DIR/etc/init.d/S50dropbear ]; then
fi fi
# Enable virtual terminals in inittab # Enable virtual terminals in inittab
echo "Enabling virtual terminal 2..12 ..." if [ ! $(fgrep tty12 "$TARGET_DIR/etc/inittab") ]; then
for ii in {12..2}; do echo "Enabling virtual terminal 2..12 ..."
sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty'$ii'::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" for ii in {12..2}; do
error_exit $? sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty'$ii'::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"
done error_exit $?
done
else
echo "Virtual terminals already enabled."
fi
# Set pax flax (tentative) # Set pax flax (tentative)
echo "Setting paxflag on libcrypto ..." echo "Setting paxflag on libcrypto ..."

Loading…
Cancel
Save