init: create /dev/.udev/rules.d with correct permissions

master
Harald Hoyer 2010-08-02 15:58:48 +02:00
parent e0c1d4e79f
commit c492fe12c0
4 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
if [ "${root%%:*}" = "live" ]; then
[ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
{
printf 'KERNEL=="%s", SYMLINK+="live"\n' \
${root#live:/dev/}

View File

@ -1,5 +1,4 @@
if [ -n "$resume" ]; then
[ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
{
printf "KERNEL==\"%s\", ACTION==\"add|change\", SYMLINK+=\"/dev/resume\"\n" \
${resume#/dev/};

View File

@ -1,5 +1,4 @@
if [ "${root%%:*}" = "block" ]; then
[ -d /dev/.udev/rules.d ] || mkdir -m 0755 -p /dev/.udev/rules.d
{
printf 'KERNEL=="%s", SYMLINK+="root"\n' \
${root#block:/dev/}

View File

@ -105,6 +105,8 @@ mkdir /dev/shm
mkdir /dev/pts
mount -t devpts -o gid=5,mode=620 devpts /dev/pts >/dev/null 2>&1
mount -t tmpfs tmpfs /dev/shm >/dev/null 2>&1
mkdir -m 0755 /dev/.udev
mkdir -m 0755 /dev/.udev/rules.d

UDEVVERSION=$(udevadm --version)