mirror of
https://github.com/dreemurrs-embedded/Jumpdrive.git
synced 2024-11-16 14:10:06 +00:00
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
|
||||
fi
|
||||
|
||||
if [ -n "$SLEEP" ]; then
|
||||
echo "Waiting for hardware to initialize..."
|
||||
sleep $SLEEP
|
||||
fi
|
||||
|
||||
# Create device nodes
|
||||
echo "Creating device nodes..."
|
||||
mknod /dev/null c 1 3
|
||||
|
Loading…
Reference in New Issue
Block a user