main/postmarketos-base: change order of baud rate and tty name according to upstream (MR 4889)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
hitechshell 2024-03-05 20:36:39 +05:00
parent 0446f43875
commit 8ab166acc0
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
pkgname=postmarketos-base
pkgver=32
pkgrel=1
pkgrel=2
pkgdesc="Meta package for minimal postmarketOS base"
url="https://postmarketos.org"
arch="noarch"

View file

@ -11,7 +11,7 @@ if [ -n "${deviceinfo_getty}" ]; then
if [ -n "${port}" ] && [ -n "${baudrate}" ]; then
echo "Configuring a getty on port ${port} with baud rate ${baudrate}"
sed -i -e "s/#ttyS0::respawn:\/sbin\/getty -L ttyS0 115200 vt100/${port}::respawn:\/sbin\/getty -L ${port} ${baudrate} vt100/" /etc/inittab
sed -i -e "s/#ttyS0::respawn:\/sbin\/getty -L 115200 ttyS0 vt100/${port}::respawn:\/sbin\/getty -L ${baudrate} ${port} vt100/" /etc/inittab
else
echo "ERROR: Invalid value for deviceinfo_getty: ${deviceinfo_getty}"
exit 1