commit 00249f3

chld  ·  2026-09-02 02:19:40 +0000 UTC
parent 5657d86
sit: rescan mdev
1 files changed,  +5, -4
M sit
M sit
+5, -4
 1@@ -113,15 +113,16 @@ else
 2 	echo 'no device manager'
 3 fi
 4 
 5-# fix device perms after s/mdev populates
 6-chmod 666 /dev/null /dev/zero /dev/tty 2>/dev/null
 7-chmod 620 /dev/ttyS0 /dev/tty1 2>/dev/null
 8-
 9 # bring up loopback interface
10 if command -v ip >/dev/null 2>&1; then
11     ip link set lo up
12 fi
13 
14+# fix device perms after s/mdev populates
15+mdev -s 2>/dev/null # rescan one more time, for stuff like snd and fb0
16+chmod 666 /dev/null /dev/zero /dev/tty 2>/dev/null
17+chmod 620 /dev/ttyS0 /dev/tty1 2>/dev/null
18+
19 # spawn console on serial and VGA with respawning
20 echo "spawning getty"
21