Debian Codegraph @

debian/extra/start-udev

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`. -e
2
3 if [scip-shell system . . `[`. -w /sys/kernel/uevent_helperscip-shell filesystem . . `/sys/kernel/uevent_helper`. ]; then
4 echoscip-shell system . . echo. > /sys/kernel/uevent_helperscip-shell filesystem . . `/sys/kernel/uevent_helper`.
5 fi
6
7 if ! grepscip-shell system . . grep. -E -q "^[^[:space:]]+ /dev devtmpfs" /proc/mountsscip-shell filesystem . . `/proc/mounts`.; then
8 mountscip-shell system . . mount. -n -o mode=0755 -t devtmpfs devtmpfs /devscip-shell filesystem . . `/dev`.
9 # Setup a few /dev symlinks, see #975018
10 [scip-shell system . . `[`. ! -h /dev/fdscip-shell filesystem . . `/dev/fd`. ] && lnscip-shell system . . ln. -s /proc/self/fdscip-shell filesystem . . `/proc/self/fd`. /dev/fdscip-shell filesystem . . `/dev/fd`.
11 [scip-shell system . . `[`. ! -h /dev/stdinscip-shell filesystem . . `/dev/stdin`. ] && lnscip-shell system . . ln. -s /proc/self/fd/0scip-shell filesystem . . `/proc/self/fd/0`. /dev/stdinscip-shell filesystem . . `/dev/stdin`.
12 [scip-shell system . . `[`. ! -h /dev/stdoutscip-shell filesystem . . `/dev/stdout`. ] && lnscip-shell system . . ln. -s /proc/self/fd/1scip-shell filesystem . . `/proc/self/fd/1`. /dev/stdoutscip-shell filesystem . . `/dev/stdout`.
13 [scip-shell system . . `[`. ! -h /dev/stderrscip-shell filesystem . . `/dev/stderr`. ] && lnscip-shell system . . ln. -s /proc/self/fd/2scip-shell filesystem . . `/proc/self/fd/2`. /dev/stderrscip-shell filesystem . . `/dev/stderr`.
14 fi
15
16 SYSTEMD_LOG_LEVEL=notice /usr/lib/systemd/systemd-udevdscip-shell filesystem . . `/usr/lib/systemd/systemd-udevd`. --daemon --resolve-names=never
17
18 udevadm trigger --action=add
19
20 mkdirscip-shell system . . mkdir. -p /dev/ptsscip-shell filesystem . . `/dev/pts`.
21 mountscip-shell system . . mount. -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/ptsscip-shell filesystem . . `/dev/pts`.
22
23 udevadm settle || truescip-shell system . . true.