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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-09-04 20:16:54 +02:00
parent f3a000560f
commit 7c4a9ad5af
2 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -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 <svc/sbin/syslogd> /sbin/ifup -a -- Networking
#task [2345] log <svc/sbin/syslogd> /sbin/ifup -a -- Networking
# Depends on syslogd having started. Redirect any output to log.
service [2345] log <svc/sbin/syslogd> /usr/sbin/acpid -f -- ACPI daemon
+7 -1
View File
@@ -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!
#