aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux/update-extlinux
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-29 12:19:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-29 12:19:06 +0000
commit1a9a0430790d7829d9ee53e0fbc17dbe6c7a6b69 (patch)
treee7b155bdba1fbd6cc32c6b2613b439fa4aa44049 /main/syslinux/update-extlinux
parent6ef416d04da9be0960a3de87bcb2613d9046e689 (diff)
downloadaports-1a9a0430790d7829d9ee53e0fbc17dbe6c7a6b69.tar.bz2
aports-1a9a0430790d7829d9ee53e0fbc17dbe6c7a6b69.tar.xz
main/syslinux: add support for serial console in update-extlinux
fixes #2761
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-xmain/syslinux/update-extlinux3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 26eb4c70b7..b3c387baee 100755
--- a/main/syslinux/update-extlinux
+++ b/main/syslinux/update-extlinux
@@ -73,6 +73,9 @@ fi
umask 0022
rm -f $conf.new
echo "# Generated by update-extlinux $version" > $conf.new
+if [ -n "$serial_port" ]; then
+ echo "SERIAL $serial_port ${serial_baud:-115200}" >> $conf.new
+fi
echo "DEFAULT $syslinux_menu" >> $conf.new
echo "PROMPT 0" >> $conf.new
echo "MENU TITLE Alpine/$(uname -s) Boot Menu" >> $conf.new