Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
ce0f4ed3
Commit
ce0f4ed3
authored
Oct 17, 2018
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tty: use proper i-f-serial
...the one starting agetty in installer if told so (0.4+); also improve runlevel 2 with potential serial access.
parent
b13ba812
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config.mk
features.in/tty/config.mk
+1
-0
50-serial
features.in/tty/rootfs/image-scripts.d/50-serial
+2
-2
No files found.
features.in/tty/config.mk
View file @
ce0f4ed3
...
...
@@ -3,6 +3,7 @@ use/tty:
@$(call xport,TTY_DEV)
@$(call xport,TTY_RATE)
ifeq (distro,$(IMAGE_CLASS))
@$(call add,INSTALL2_PACKAGES,installer-feature-serial-stage2)
@$(call add,BASE_PACKAGES,installer-feature-serial-stage3)
endif
...
...
features.in/tty/rootfs/image-scripts.d/50-serial
View file @
ce0f4ed3
...
...
@@ -11,8 +11,8 @@ SEC=/etc/securetty
if
!
grep
-q
"
$BIN
"
"
$CFG
"
;
then
n
=
0
for
t
in
$GLOBAL_TTY_DEV
;
do
grep
-q
"
$t
"
"
$SEC
"
||
echo
"
$t
"
>>
"
$SEC
"
echo
"T
$n
:
345:respawn:
$BIN
-L
$t
$GLOBAL_TTY_RATE
vt100"
>>
$CFG
grep
-q
"
$t
"
"
$SEC
"
||
echo
"
$t
"
>>
"
$SEC
"
echo
"T
$n
:
2345:respawn:
$BIN
-L
$t
$GLOBAL_TTY_RATE
vt100"
>>
$CFG
n
=
$((
$n
+
1
))
done
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment