Fixed edit of /boot/cmdline.txt - thanks Ivan Drucker!

This commit is contained in:
David Schmenk 2013-10-06 14:09:28 -07:00
parent acfe7b42f0
commit 9e131e6f6e

2
debian/postinst vendored
View File

@ -25,7 +25,7 @@ case "$1" in
# #
if [ "$(grep ttyAMA0 /boot/cmdline.txt)" != "" ] ; then if [ "$(grep ttyAMA0 /boot/cmdline.txt)" != "" ] ; then
mv /boot/cmdline.txt /boot/cmdline.bak mv /boot/cmdline.txt /boot/cmdline.bak
echo "dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait" > /boot/cmdline.txt sed -i 's/console=ttyAMA0,[0-9]* kgdboc=ttyAMA0,[0-9]* //g' /boot/cmdline.txt
fi fi
# #
# Disable getty on built-in serial port. # Disable getty on built-in serial port.