diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/logind/Makefile | 7 | ||||
-rw-r--r-- | daemon/logind/logind.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/daemon/logind/Makefile b/daemon/logind/Makefile index 7666cf95..9e7fa093 100644 --- a/daemon/logind/Makefile +++ b/daemon/logind/Makefile @@ -2,6 +2,7 @@ SRCROOT= ../.. .include "$(SRCROOT)/pttbbs.mk" +PROGS= logind PROGRAMS= logind loginc UTILDIR= $(SRCROOT)/util UTILOBJ= $(UTILDIR)/util_var.o @@ -24,5 +25,11 @@ logind: logind.o loginc: loginc.o ${CC} ${CFLAGS} ${LDFLAGS} -levent -o $@ $> $(LDLIBS) +install: $(PROGS) + install -d $(BBSHOME)/bin/ + install -c -m 755 $(PROGS) $(BBSHOME)/bin/ + mv -f $(BBSHOME)/bin/logind $(BBSHOME)/bin/logind.`date '+%m%d%H%M'` + ln -sv $(BBSHOME)/bin/logind.`date '+%m%d%H%M'` $(BBSHOME)/bin/logind + clean: rm -f *~ ${PROGRAMS} logind.o loginc.o diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index 3e411e02..6cc8b79b 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -13,7 +13,7 @@ // 2. [drop] change close connection to 'wait until user hit then close' // 3. [done] regular check text screen files instead of HUP? // 4. [done] re-start mbbsd if pipe broken? -// 5. clean mbbsd pid log files? +// 5. [drop] clean mbbsd pid log files? #include <stdio.h> #include <ctype.h> |