init: Add optional sleep before creating device nodes
Some devices may need a bit of time to initialize their peripherals (like the SD card on the Librem 5).
This commit is contained in:
parent
921d72d282
commit
456757b85f
|
@ -40,6 +40,11 @@ if [ -n "$LED" ]; then
|
||||||
echo $TRIGGER > /sys/class/leds/$LED/trigger
|
echo $TRIGGER > /sys/class/leds/$LED/trigger
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$SLEEP" ]; then
|
||||||
|
echo "Waiting for hardware to initialize..."
|
||||||
|
sleep $SLEEP
|
||||||
|
fi
|
||||||
|
|
||||||
# Create device nodes
|
# Create device nodes
|
||||||
echo "Creating device nodes..."
|
echo "Creating device nodes..."
|
||||||
mknod /dev/null c 1 3
|
mknod /dev/null c 1 3
|
||||||
|
|
Loading…
Reference in New Issue