From 95acee830f389cfbf7273703f19a6b0fcff5093e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Thu, 15 Apr 2021 16:14:57 +0200 Subject: [PATCH] add package install script, move runit rules to subdirectory --- Makefile | 9 ++++++--- install_packages.sh | 5 +++++ rc.local => runit/rc.local | 0 rc.shutdown => runit/rc.shutdown | 0 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100755 install_packages.sh rename rc.local => runit/rc.local (100%) rename rc.shutdown => runit/rc.shutdown (100%) diff --git a/Makefile b/Makefile index 256777a..ea3c950 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ install: - install -m755 rc.local $(DESTDIR)/etc - install -m755 rc.shutdown $(DESTDIR)/etc + install -m755 runit/rc.local $(DESTDIR)/etc + install -m755 runit/rc.shutdown $(DESTDIR)/etc uninstall: $(RM) $(DESTDIR)/etc/rc.local $(RM) $(DESTDIR)/etc/rc.shutdown -.PHONY: install uninstall +install_packages: + ./install_packages.sh + +.PHONY: install uninstall install_packages diff --git a/install_packages.sh b/install_packages.sh new file mode 100755 index 0000000..da5df38 --- /dev/null +++ b/install_packages.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +xbps-install -S tlp \ + powertop \ + cpupower diff --git a/rc.local b/runit/rc.local similarity index 100% rename from rc.local rename to runit/rc.local diff --git a/rc.shutdown b/runit/rc.shutdown similarity index 100% rename from rc.shutdown rename to runit/rc.shutdown