From 7c4a9ad5afda7aeafca05d6b8c13ccefddda918f Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 4 Sep 2017 20:16:54 +0200 Subject: [PATCH] alpine: Migrate rc.local bootstrap tasks to finit.conf Finit now supports pipes and redirects in run/task stanzas. Hence, we can reduce rc.local to an example template. Signed-off-by: Joachim Nilsson --- contrib/alpine/finit.conf | 5 ++++- contrib/alpine/rc.local | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/contrib/alpine/finit.conf b/contrib/alpine/finit.conf index f8ebdc67..0c0dca18 100644 --- a/contrib/alpine/finit.conf +++ b/contrib/alpine/finit.conf @@ -14,13 +14,16 @@ runlevel 2 service [S12345] /sbin/klogd -n -- Kernel log daemon service [S12345] /sbin/syslogd -n -- Syslog daemon +# Misc oneshot bootstrap tasks +task [S] zcat /etc/keymap/se.bmap.gz | loadkmap -- Loading keymap + # Network bringup script, blocks boot like run stanza, use below task instead #network /sbin/ifup -a ### Every line below can be a service/task per file in /etc/finit.d/*.conf ### # Network bringup not needed if /etc/network/interfaces is used. -task [2345] log /sbin/ifup -a -- Networking +#task [2345] log /sbin/ifup -a -- Networking # Depends on syslogd having started. Redirect any output to log. service [2345] log /usr/sbin/acpid -f -- ACPI daemon diff --git a/contrib/alpine/rc.local b/contrib/alpine/rc.local index 67c81021..fba6be05 100755 --- a/contrib/alpine/rc.local +++ b/contrib/alpine/rc.local @@ -1,2 +1,8 @@ #!/bin/sh -zcat /etc/keymap/se.bmap.gz | loadkmap +# This script is executed once at boot, at the very end, +# right before starting the TTYs. +# +# Each line is run in sequence. +# +# NOTE: Remeber to set the executable bit! +#