diff options
author | Bill Nottingham <notting@redhat.com> | 2008-02-26 01:31:47 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-02-26 01:31:47 -0500 |
commit | e1e49f90e89e507d6917092ac88602641d696e7a (patch) | |
tree | 05b5b6b6e022ffa270e5c265d36f9008bfa3cfc8 /src/Makefile | |
parent | a0cdade299e77957c4c1f5cca9a0c5f5e58f47be (diff) | |
download | initscripts-e1e49f90e89e507d6917092ac88602641d696e7a.tar initscripts-e1e49f90e89e507d6917092ac88602641d696e7a.tar.gz initscripts-e1e49f90e89e507d6917092ac88602641d696e7a.tar.bz2 initscripts-e1e49f90e89e507d6917092ac88602641d696e7a.tar.xz initscripts-e1e49f90e89e507d6917092ac88602641d696e7a.zip |
Add console_init udev helper.
This helper:
- sets the keyboard mode
- sets the console mode
- sets the console font
- sets the keyboard map
based on configuration in /etc/sysconfig/keyboard and
/etc/sysconfig/i18n. This allows us to remove various cruft from
rc.sysinit and /etc/profile.d/lang.sh.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index df4f6bd4..5c23a8fe 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,8 +1,10 @@ CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE PROGS=usernetctl doexec netreport testd usleep ipcalc initlog \ - fstab-decode getkey ppp-watch consoletype genhostid rename_device + fstab-decode getkey ppp-watch consoletype genhostid rename_device \ + console_init PPPWATCH_OBJS=ppp-watch.o shvar.o +CONSOLE_INIT_OBJS=console_init.o shvar.o INITLOG_OBJS=initlog.o process.o USLEEP_OBJS=usleep.o @@ -27,6 +29,7 @@ install: install -m 755 ppp-watch $(ROOT)/sbin/ppp-watch install -m 755 consoletype $(ROOT)/sbin/consoletype install -m 755 rename_device $(ROOT)/lib/udev/rename_device + install -m 755 console_init $(ROOT)/lib/udev/console_init install -m 755 ccw_init $(ROOT)/lib/udev/ccw_init install -m 644 initlog.1 $(ROOT)$(mandir)/man1 install -m 644 genhostid.1 $(ROOT)$(mandir)/man1 @@ -79,3 +82,9 @@ rename_device: rename_device.c kmodule: kmodule.o $(CC) $(LDFLAGS) -o $@ $< -lpopt -lkudzu -lpci + +console_init.o: console_init.c + $(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c console_init.c -o console_init.o + +console_init: $(CONSOLE_INIT_OBJS) + $(CC) $(LDFLAGS) -o $@ $(CONSOLE_INIT_OBJS) `pkg-config glib-2.0 --libs` |