aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-17 13:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-17 13:17:30 +0200
commit497ec1126ddea837575420cb624d6aa7009beb99 (patch)
tree4c257a89eda41acb02fbb10bf3a3351ed83f1311 /init
parent99b03d9291841e00db3369a827d576015cc83afc (diff)
Add delay to init to make sure all devices are discovered
Diffstat (limited to 'init')
-rwxr-xr-xinit10
1 files changed, 10 insertions, 0 deletions
diff --git a/init b/init
index 429c87d..af507c0 100755
--- a/init
+++ b/init
@@ -78,6 +78,16 @@ udevadm trigger --type=subsystems --action=add
udevadm trigger --type=devices --action=add
udevadm settle || true
+# On 6-series kernels we seem to be executed a lot earlier (or a lot faster)
+# with many devices (Ethernet, USB storage) not being discovered yet (and
+# devices that require firmware generally taking a while). So let's wait a
+# bit for things to settle down.
+#
+for s in 5 4 3 2 1; do
+ info "waiting for devices ${s}s..."
+ sleep 1
+done
+
# Detect hardware sensors.
#
sensors-detect --auto