Skip to content

Commit

Permalink
Fixed a typo in Makefile, expanded README a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrin committed Oct 15, 2011
1 parent 554f8c7 commit d5d1c07
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Makefile
Expand Up @@ -5,6 +5,7 @@
.PHONY: all install install-strip installdirs uninstall clean

prefix = /usr/local

exec_prefix = $(prefix)
bin_dir = $(exec_prefix)/bin
sbindir = $(exec_prefix)/sbin
Expand All @@ -24,9 +25,7 @@ INSTALL_PROGRAM_STRIP = $(INSTALL) -s
CFLAGS += -g -Wall
ALL_CFLAGS = -I./include $(CFLAGS)

.SUFFIXES:
.SUFFIXES: .o

vpath %.c ./src

PROGRAMS = xlsh xlshd
Expand Down Expand Up @@ -70,4 +69,4 @@ clean:
rm -f $(XLSH_OBJ) $(XLSHD_OBJ)

%.o: %.c
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@
$(CC) -c $(CFLAGS) $(ALL_CFLAGS) $< -o $@
16 changes: 15 additions & 1 deletion README
Expand Up @@ -19,7 +19,21 @@ Features:
* Only *three* important commands: 'login', 'reboot' and 'shutdown'.
* New commands can be easily added (if you need any) by editing xlsh.c
* Username autocompletion on TAB.
* Zenburn color scheme (when run under X).
* Zenburn color scheme by default (when run under X).

The only build dependencies are: make, a decent C compiler, libreadline and libpam.
Configuration options can be edited in include/config.h before compiling.

When using xlsh as "login" replacement remember to tell your getty program to not
ask for username. When using xlshd from inittab specify -f flag so it won't fork
into background.

Example lines from my inittab file:

# xlsh on virtual console #1 (tty1)
c1:2345:respawn:/sbin/agetty -8 -s 38400 -n -l /usr/local/sbin/xlsh tty1 linux
# xlshd starting X server and xterm/xlsh on runlevel 5
x:5:respawn:/usr/local/sbin/xlshd -f

Please report any bugs or issues either via github or via mail to:
<my_firstname@my_lastname.pl>

0 comments on commit d5d1c07

Please sign in to comment.