commit e1becd9e089ad708e8333e56cfb19fa45192178a
parent 2d366eab6602759f35a51b54c3ec47a8099b0312
Author: ccx <root@dorje.wpr.cz>
Date: Wed, 3 Mar 2021 22:24:17 +0100
Add dmesg, hostname, loopback and modules oneshots
Diffstat:
13 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/dmesg/type b/dmesg/type
@@ -0,0 +1 @@
+oneshot
diff --git a/dmesg/up b/dmesg/up
@@ -0,0 +1,3 @@
+# description="Set the dmesg level for a cleaner boot"
+# dmesg_level=1
+dmesg -n1
diff --git a/hostname/type b/hostname/type
@@ -0,0 +1 @@
+oneshot
diff --git a/hostname/up b/hostname/up
@@ -0,0 +1 @@
+hostname -F /etc/hostname
diff --git a/loopback/type b/loopback/type
@@ -0,0 +1 @@
+oneshot
diff --git a/loopback/up b/loopback/up
@@ -0,0 +1,3 @@
+if { ip link set lo up }
+if -nt { ip addr add 127.0.0.1/8 dev lo brd + }
+pipeline { ip addr show dev lo } grep -q "inet 127\\.0\\.0\\.1"
diff --git a/modules/dependencies b/modules/dependencies
@@ -0,0 +1 @@
+dmesg
diff --git a/modules/type b/modules/type
@@ -0,0 +1 @@
+oneshot
diff --git a/modules/up b/modules/up
@@ -0,0 +1,11 @@
+foreground { modprobe af_packet }
+foreground { modprobe thinkpad_acpi }
+foreground { modprobe iwldvm }
+foreground { modprobe evdev }
+foreground { modprobe psmouse }
+foreground { modprobe elan_i2c }
+foreground { modprobe snd-hda-intel }
+foreground { modprobe fuse }
+foreground { modprobe overlay }
+foreground { modprobe kvm-intel }
+foreground { modprobe tun }
diff --git a/net-all/contents b/net-all/contents
@@ -1,3 +1,4 @@
wpa_supplicant
dhcpcd
unbound
+loopback
diff --git a/ok-all-but-tty/contents b/ok-all-but-tty/contents
@@ -7,3 +7,6 @@ net-all
setfont
loadkeys
containers
+dmesg
+hostname
+modules
diff --git a/openrc/dependencies b/openrc/dependencies
@@ -1 +1,2 @@
ok-sysinit
+modules
diff --git a/unbound/dependencies b/unbound/dependencies
@@ -1 +1 @@
-openrc
+loopback