Skip to content

Commit

Permalink
units: cleanup agetty command line
Browse files Browse the repository at this point in the history
 * baud rate is optional and unnecessary for virtual terminals
 * term type is optional (default is 'linux' for virtual terminals
   and 'vt102' for serial lines)
 * long options are more user-friendly

... all this is supported since util-linux v2.20 (Aug 2011).
  • Loading branch information
karelzak authored and poettering committed Jun 4, 2013
1 parent 59967d3 commit 7c1b8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion units/getty@.service.m4
Expand Up @@ -27,7 +27,7 @@ ConditionPathExists=/dev/tty0

[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --noclear %I 38400 linux
ExecStart=-/sbin/agetty --noclear %I
Type=idle
Restart=always
RestartSec=0
Expand Down
2 changes: 1 addition & 1 deletion units/serial-getty@.service.m4
Expand Up @@ -22,7 +22,7 @@ Before=getty.target
IgnoreOnIsolate=yes

[Service]
ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
Type=idle
Restart=always
RestartSec=0
Expand Down

0 comments on commit 7c1b8f0

Please sign in to comment.