commit e54347c4816f96226113d0fddecff41502b22d1f
parent 4671d8270e28dca692eec5cef1bb533a423cf1dc
Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 28 Apr 2012 11:59:32 +0200
Adding a common startup script that supports logging.
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -41,6 +41,7 @@ install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f ${NAME} ${DESTDIR}${PREFIX}/bin
+ @cp -f run_${NAME} ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
@@ -50,6 +51,7 @@ install: all
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
+ @rm -f ${DESTDIR}${PREFIX}/bin/run_${NAME}
@echo removing manual page from ${DESTDIR}${PREFIX}/man1
@rm -f ${DESTDIR}${MANPREFIX}/man1/${NAME}.1
diff --git a/config.mk b/config.mk
@@ -5,7 +5,7 @@ VERSION = 0.3
# Customize below to fit your system
# paths
-PREFIX ?= /usr
+PREFIX = /usr
MANPREFIX = ${PREFIX}/share/man
# includes and libs
diff --git a/run_nldev b/run_nldev
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/bin/nldev -kd 2>&1 | logger -p daemon.notice -t nldev
+