aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile3
-rw-r--r--src/loglevel.c25
2 files changed, 1 insertions, 27 deletions
diff --git a/src/Makefile b/src/Makefile
index 33801e07..b312a08b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,7 @@
CFLAGS+=-Wall -D_GNU_SOURCE -g
PROGS=usernetctl doexec netreport testd usleep ipcalc initlog minilogd \
- loglevel getkey ppp-watch
+ getkey ppp-watch
PPPWATCH_OBJS=ppp-watch.o shvar.o
INITLOG_OBJS=initlog.o process.o
USLEEP_OBJS=usleep.o
@@ -20,7 +20,6 @@ install:
install -s -m 755 ipcalc $(ROOT)/bin/ipcalc
install -s -m 755 initlog $(ROOT)/sbin/initlog
install -s -m 755 minilogd $(ROOT)/sbin/minilogd
- install -s -m 755 loglevel $(ROOT)/sbin/loglevel
install -s -m 755 getkey $(ROOT)/sbin/getkey
install -s -m 755 ppp-watch $(ROOT)/sbin/ppp-watch
install -m 644 initlog.1 $(ROOT)/usr/man/man1
diff --git a/src/loglevel.c b/src/loglevel.c
deleted file mode 100644
index de2a4e11..00000000
--- a/src/loglevel.c
+++ /dev/null
@@ -1,25 +0,0 @@
-
-/* Change the default console loglevel */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <linux/unistd.h>
-#include <sys/syscall.h>
-
-int main(int argc, char **argv) {
- int level;
-
- if (!argv[1]) exit(0);
- level=atoi(argv[1]);
- if ( (level<1) || (level>8) ) {
- fprintf(stderr,"invalid log level %d\n",level);
- exit(-1);
- }
- if (!syscall(SYS_syslog,8,NULL,level)) {
- exit(0);
- } else {
- perror("syslog");
- exit(-1);
- }
-}