start-udev 415 Bytes
Newer Older
1
2
#!/bin/sh -e

3
4
5
if [ -w /sys/kernel/uevent_helper ]; then
    echo > /sys/kernel/uevent_helper
fi
6

Michael Biebl's avatar
Michael Biebl committed
7
if ! grep -E -q "^[^[:space:]]+ /dev devtmpfs" /proc/mounts; then
8
    mount -n -o mode=0755 -t devtmpfs devtmpfs /dev
9
10
fi

11
/lib/systemd/systemd-udevd --daemon --resolve-names=never
12
13
14

udevadm trigger --action=add

15
mkdir -p /dev/pts
16
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts
17
18

udevadm settle || true