From bcbf7c6c9fc7d8a96b1d5c4cc9247b85fe3da2ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=81LI=20G=C3=A1bor=20J=C3=A1nos?= Date: Sun, 10 Apr 2022 18:17:21 +0200 Subject: Move towards custom packages. Change the build image process in a way that custom-built packages can be utilized. This means a simpler `Makefile` since every modification is implemented on the level of packages. Include the sources for every customized package. --- aports/openrc/hostname.initd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 aports/openrc/hostname.initd (limited to 'aports/openrc/hostname.initd') diff --git a/aports/openrc/hostname.initd b/aports/openrc/hostname.initd new file mode 100644 index 0000000..bd20874 --- /dev/null +++ b/aports/openrc/hostname.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +description="Sets the hostname of the machine." + +depend() { + keyword -prefix -lxc -docker +} + +start() { + if [ -s /etc/hostname ] ; then + opts="-F /etc/hostname" + else + opts="${hostname:-localhost}" + fi + ebegin "Setting hostname" + hostname $opts + eend $? +} -- cgit v1.2.3