From d64ef0ac33d887b80078766cd0e9e60463b85aaa Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 13 Jul 2020 14:37:18 -0700 Subject: [PATCH] ambed install and how to tell # of processors --- ambed/Makefile | 4 ++-- radmin | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ambed/Makefile b/ambed/Makefile index bab087d..165e9de 100644 --- a/ambed/Makefile +++ b/ambed/Makefile @@ -37,9 +37,9 @@ clean : -include $(DEPS) # The install and uninstall targets need to be run by root -install : $(EXE) $(EXE).service +install : $(EXE) cp $(EXE) $(BINDIR) - cp $(EXE).service /etc/systemd/system/ + cp ../ambed/$(EXE).service /etc/systemd/system/ systemctl enable ambed systemctl daemon-reload systemctl start ambed diff --git a/radmin b/radmin index 304e35d..c1a2aa1 100755 --- a/radmin +++ b/radmin @@ -85,7 +85,7 @@ Clean () { Compile () { local np WriteCFGFiles - np=`cat /proc/cpuinfo | grep "model name" | wc -l` + np=`getconf _NPROCESSORS_ONLN` cd src make -j$np cd ..