Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start_getty cannot handle tty number > 9 #18

Open
maartenbrock opened this issue Dec 5, 2020 · 0 comments
Open

start_getty cannot handle tty number > 9 #18

maartenbrock opened this issue Dec 5, 2020 · 0 comments

Comments

@maartenbrock
Copy link

Line 14 of start_getty uses a regular expression that only works for single digit tty numbers.
runtime_tty=$(echo $2 | grep -oh '[0-9]')
If you have e.g. a ttyPS10, it fails.

Please change line 14 to:
runtime_tty=$(echo $2 | grep -oh '[0-9]*')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant