systemd/udev-MAKEDEV

17 lines
539 B
Plaintext
Raw Normal View History

2023-12-30 11:35:14 +01:00
#!/bin/sh
#
# udev startup devices creation script
#
[ "$UDEV_ROOT" ] || UDEV_ROOT=/dev
ln -sf /proc/self/fd $UDEV_ROOT
ln -sf /proc/self/fd/0 $UDEV_ROOT/stdin
ln -sf /proc/self/fd/1 $UDEV_ROOT/stdout
ln -sf /proc/self/fd/2 $UDEV_ROOT/stderr
ln -sf /proc/kcore $UDEV_ROOT/core
[ -e $UDEV_ROOT/shm ] || mkdir $UDEV_ROOT/shm
[ -e $UDEV_ROOT/pts ] || mkdir $UDEV_ROOT/pts
[ -e $UDEV_ROOT/console ] || mknod $UDEV_ROOT/console c 5 1
[ -e $UDEV_ROOT/ppp ] || mknod $UDEV_ROOT/ppp c 108 0
[ -e $UDEV_ROOT/null ] || mknod $UDEV_ROOT/null c 1 3