diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-17 13:17:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-10-17 13:17:30 +0200 |
commit | 497ec1126ddea837575420cb624d6aa7009beb99 (patch) | |
tree | 4c257a89eda41acb02fbb10bf3a3351ed83f1311 /init | |
parent | 99b03d9291841e00db3369a827d576015cc83afc (diff) |
Add delay to init to make sure all devices are discovered
Diffstat (limited to 'init')
-rwxr-xr-x | init | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |