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 ..