diff --git a/Makefile b/Makefile index 606f09e..2d0354e 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ install: install-openrc: cp init.d/$(BIN) /etc/init.d/$(BIN) cp conf.d/$(BIN) /etc/conf.d/$(BIN) + rc-update add homemade_speedstep clean: $(RM) -r $(BINDIR)/* diff --git a/README.md b/README.md index 23a4ea7..2c52b46 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ Run `make` to compile the program, the binary will be placed in the `bin` direct You can run it from there or you can run `make install` to place it in the `/usr/bin` folder. +Run `make install-openrc` to install the program as an openrc service. + Run `make debug` to compile the program with debug symbols (only useful if you wish to debug it). Run `make clean` to remove the compiled binary (note: only from `bin`, to remove from `/usr/bin` run `rm /usr/bin/homemade_speedstep`).