units: cleanup agetty command line
* 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).
This commit is contained in:
parent
59967d30e5
commit
7c1b8f043e
|
@ -27,7 +27,7 @@ ConditionPathExists=/dev/tty0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# the VT is cleared by TTYVTDisallocate
|
# the VT is cleared by TTYVTDisallocate
|
||||||
ExecStart=-/sbin/agetty --noclear %I 38400 linux
|
ExecStart=-/sbin/agetty --noclear %I
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
|
|
@ -22,7 +22,7 @@ Before=getty.target
|
||||||
IgnoreOnIsolate=yes
|
IgnoreOnIsolate=yes
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=-/sbin/agetty -s %I 115200,38400,9600 vt102
|
ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
|
||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=0
|
RestartSec=0
|
||||||
|
|
Loading…
Reference in New Issue