From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- extra/openrc/hostname.initd | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 extra/openrc/hostname.initd (limited to 'extra/openrc/hostname.initd') diff --git a/extra/openrc/hostname.initd b/extra/openrc/hostname.initd deleted file mode 100644 index 4581595..0000000 --- a/extra/openrc/hostname.initd +++ /dev/null @@ -1,18 +0,0 @@ -#!/sbin/openrc-run - -description="Sets the hostname of the machine." - -depend() { - keyword -prefix -lxc -docker -} - -start() { - if [ -s /etc/hostname ] ; then - name=$(cat /etc/hostname) - else - name="${hostname:-localhost}" - fi - ebegin "Setting hostname" - hostname $name - eend $? -} -- cgit v1.2.1