diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-03-03 04:11:20 +0000 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-03-03 04:11:20 +0000 |
| commit | 58f93fc39d00a844ffc967c6df619d77f005629b (patch) | |
| tree | 5bebdc213237a5cd2709c3a473106badd361a59c /repos/core/initscripts/rc.boot | |
| parent | 0dabb9797fe0fea51e5e4fb5928a643a1f2af43e (diff) | |
| parent | cd9dd179fe9c8179735a36224bf4aa076f1117ba (diff) | |
| download | alicelinux-58f93fc39d00a844ffc967c6df619d77f005629b.tar.gz alicelinux-58f93fc39d00a844ffc967c6df619d77f005629b.zip | |
Merge pull request 'add: f2fs-tools, skalibs, mdevd' (#18) from xplshn/alicelinux:main into main
Reviewed-on: https://codeberg.org/emmett1/alicelinux/pulls/18
Diffstat (limited to 'repos/core/initscripts/rc.boot')
| -rw-r--r-- | repos/core/initscripts/rc.boot | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/repos/core/initscripts/rc.boot b/repos/core/initscripts/rc.boot index 0b208a17..42c80ceb 100644 --- a/repos/core/initscripts/rc.boot +++ b/repos/core/initscripts/rc.boot @@ -18,8 +18,11 @@ if [ "$(command -v udevd)" ]; then udevadm trigger --action=add --type=devices udevadm settle else - echo "/sbin/mdev" > /proc/sys/kernel/hotplug - mdev -s + # In the case the user may preffer mdevd as opposed to busybox mdev + if [ ! -d "/var/service/mdevd" ]; then + echo "/sbin/mdev" > /proc/sys/kernel/hotplug + mdev -s + fi find /sys -name 'modalias' -type f -exec cat '{}' + | sort -u | xargs modprobe -b -a 2>/dev/null ln -s /proc/self/fd /dev/fd ln -s fd/0 /dev/stdin |