X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fserial-getty%40.service.m4;h=a8610c809ac2f980beacdff293023a0971be32de;hb=f54409d8b8a8dd3e43a450be5bbd78afdcb78c25;hp=da9bd1946bb931006385ed4bbdf02ac81fb9065c;hpb=b0734b235f47238148253ace6a887151e3721d29;p=elogind.git diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4 index da9bd1946..a8610c809 100644 --- a/units/serial-getty@.service.m4 +++ b/units/serial-getty@.service.m4 @@ -5,6 +5,13 @@ # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. +m4_ifdef(`TARGET_FEDORA', `m4_define(`GETTY', `/sbin/agetty')')m4_dnl +m4_ifdef(`TARGET_SUSE', `m4_define(`GETTY', `/sbin/agetty')')m4_dnl +m4_ifdef(`TARGET_GENTOO', `m4_define(`GETTY', `/sbin/agetty')')m4_dnl +m4_ifdef(`TARGET_ARCH', `m4_define(`GETTY', `/sbin/agetty')')m4_dnl +m4_ifdef(`TARGET_DEBIAN', `m4_define(`GETTY', `/sbin/getty')')m4_dnl +m4_ifdef(`TARGET_UBUNTU', `m4_define(`GETTY', `/sbin/getty')')m4_dnl +m4_dnl [Unit] Description=Serial Getty on %I BindTo=dev-%i.device @@ -26,7 +33,7 @@ Environment=TERM=vt100-nav m4_ifdef(`TARGET_FEDORA', ExecStartPre=-/sbin/securetty %I )m4_dnl -ExecStart=-/sbin/agetty -s %I 115200,38400,9600 +ExecStart=-GETTY -s %I 115200,38400,9600 Restart=always RestartSec=0 UtmpIdentifier=%I