diff options
| author | xplshn <xplshn@murena.io> | 2025-02-26 05:58:34 -0300 |
|---|---|---|
| committer | xplshn <xplshn@murena.io> | 2025-02-26 05:58:34 -0300 |
| commit | cd9dd179fe9c8179735a36224bf4aa076f1117ba (patch) | |
| tree | 5bebdc213237a5cd2709c3a473106badd361a59c /repos/core | |
| parent | 3268e4ae8585276b075070c1e32b732dbb001d6b (diff) | |
| download | alicelinux-cd9dd179fe9c8179735a36224bf4aa076f1117ba.tar.gz alicelinux-cd9dd179fe9c8179735a36224bf4aa076f1117ba.zip | |
mdevd: fix conflicting rc.boot file
Signed-off-by: xplshn <xplshn@murena.io>
Diffstat (limited to 'repos/core')
| -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 |