26 lines
1.0 KiB
Bash
Executable File
26 lines
1.0 KiB
Bash
Executable File
#!/bin/sh -e
|
|
|
|
rl="$1"
|
|
shift
|
|
|
|
### argv now contains the arguments of the kernel command line that are
|
|
### not of the form key=value. (The key=value arguments were stored by
|
|
### s6-linux-init into an envdir, if instructed so via the -s option.)
|
|
### Normally this argv remains unused because programs that need the
|
|
### kernel command line usually read it later on from /proc/cmdline -
|
|
### but just in case, it's available here.
|
|
|
|
### 1. Early preparation
|
|
### This is done only once at boot time.
|
|
### Ideally, this phase should just initialize the service manager.
|
|
s6-rc-init -d -c /etc/s6/sv/current /run/service
|
|
|
|
### 2. Starting the wanted set of services
|
|
### This is also called every time you change runlevels with telinit.
|
|
### (edit the location to suit your installation)
|
|
### By default, $rl is the string "default", unless you changed it
|
|
### via the -D option to s6-linux-init-maker.
|
|
### Numeric arguments from 1 to 5 on the kernel command line will
|
|
### override the default.
|
|
exec /etc/s6-linux-init/current/scripts/runlevel "$rl"
|