mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 20:42:58 +02:00
udev: mount /dev/shm and /dev/pts if not mounted.
This commit is contained in:
@@ -41,6 +41,16 @@ case "${1}" in
|
||||
/etc/rc.d/init.d/halt stop
|
||||
fi
|
||||
|
||||
if ! grep -q '[[:space:]]/dev/shm' /proc/mounts; then
|
||||
mkdir -p /dev/shm
|
||||
mount -t tmpfs tmpfs /dev/shm
|
||||
fi
|
||||
|
||||
if ! grep -q '[[:space:]]/dev/pts' /proc/mounts; then
|
||||
mkdir -p /dev/pts
|
||||
mount -t devpts devpts -o gid=5,mode=620 /dev/pts
|
||||
fi
|
||||
|
||||
# Udev handles uevents itself, so we don't need to have
|
||||
# the kernel call out to any binary in response to them
|
||||
echo > /proc/sys/kernel/hotplug
|
||||
|
||||
Reference in New Issue
Block a user