Magellan Linux

Contents of /trunk/systemd/patches/systemd-33-magellan-configurable-getty.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1494 - (show annotations) (download)
Fri Aug 12 17:12:41 2011 UTC (12 years, 9 months ago) by niro
File size: 2526 byte(s)
-added a patch to configure getty to our needs
1 diff -Naur systemd-33/Makefile.am systemd-33-magellan/Makefile.am
2 --- systemd-33/Makefile.am 2011-08-12 20:33:03.000000000 +0200
3 +++ systemd-33-magellan/Makefile.am 2011-08-12 20:33:18.000000000 +0200
4 @@ -1683,6 +1683,7 @@
5 $(DESTDIR)$(systemshutdowndir) \
6 $(DESTDIR)$(systemgeneratordir) \
7 $(DESTDIR)$(usergeneratordir)
8 +
9 if ENABLE_BINFMT
10 $(MKDIR_P) -m 0755 \
11 $(DESTDIR)$(prefix)/lib/binfmt.d \
12 @@ -1927,6 +1928,11 @@
13 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
14 endif
15
16 +if TARGET_MAGELLAN
17 + $(MKDIR_P) -m 0755 $(DESTDIR)$(sysconfdir)/conf.d
18 + $(INSTALL_DATA) src/getty.confd $(DESTDIR)$(sysconfdir)/conf.d/getty
19 +endif
20 +
21 if HAVE_SYSV_COMPAT
22 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
23 rm -f var-lock.mount && \
24 diff -Naur systemd-33/Makefile.in systemd-33-magellan/Makefile.in
25 --- systemd-33/Makefile.in 2011-08-03 04:20:25.000000000 +0200
26 +++ systemd-33-magellan/Makefile.in 2011-08-12 20:33:18.000000000 +0200
27 @@ -7777,6 +7777,9 @@
28 @TARGET_SUSE_TRUE@ rm -f halt-local.service && \
29 @TARGET_SUSE_TRUE@ $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
30
31 +@TARGET_MAGELLAN_TRUE@ $(MKDIR_P) -m 0755 $(DESTDIR)$(sysconfdir)/conf.d
32 +@TARGET_MAGELLAN_TRUE@ $(INSTALL_DATA) src/getty.confd $(DESTDIR)$(sysconfdir)/conf.d/getty
33 +
34 @HAVE_SYSV_COMPAT_TRUE@ ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
35 @HAVE_SYSV_COMPAT_TRUE@ rm -f var-lock.mount && \
36 @HAVE_SYSV_COMPAT_TRUE@ $(LN_S) ../var-lock.mount var-lock.mount )
37 diff -Naur systemd-33/src/getty.confd systemd-33-magellan/src/getty.confd
38 --- systemd-33/src/getty.confd 1970-01-01 01:00:00.000000000 +0100
39 +++ systemd-33-magellan/src/getty.confd 2011-08-12 20:33:18.000000000 +0200
40 @@ -0,0 +1,10 @@
41 +# Getty configuration file
42 +
43 +# Getty exec which get spawns on the TTYs
44 +GETTY_EXEC="/sbin/agetty"
45 +
46 +# Default getty speed
47 +GETTY_SPEED="38400"
48 +
49 +# Getty options like --autologin etc
50 +GETTY_OPTS=""
51 diff -Naur systemd-33/units/getty@.service.m4 systemd-33-magellan/units/getty@.service.m4
52 --- systemd-33/units/getty@.service.m4 2011-06-29 22:24:44.000000000 +0200
53 +++ systemd-33-magellan/units/getty@.service.m4 2011-08-12 20:34:01.000000000 +0200
54 @@ -31,8 +31,15 @@
55 Before=getty.target
56
57 [Service]
58 +m4_ifdef(`TARGET_MAGELLAN',
59 +Environmentfile=-/etc/conf.d/getty
60 +)m4_dnl
61 Environment=TERM=linux
62 +m4_ifdef(`TARGET_MAGELLAN',
63 +ExecStart=-${GETTY_EXEC} %I ${GETTY_SPEED} ${GETTY_OPTS},
64 ExecStart=-/sbin/agetty %I 38400
65 +)m4_dnl
66 +
67 Restart=always
68 RestartSec=0
69 UtmpIdentifier=%I