Changeset 569


Ignore:
Timestamp:
04/19/13 08:23:52 (7 years ago)
Author:
dennis
Message:

Some minor changes to make sure that we don't try to create devices when they already exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/initrd/sali/init

    r567 r569  
    3030_DMESG="/bin/dmesg"
    3131
    32 ## Are we allowed to run?
    33 if [ -n "$($_MOUNT | $_GREP "/dev")" ]
    34 then
    35     $_PRINTF "Looks like /dev is already mounted, this script can only be used for initialization of SALI\n"
    36     exit 1
    37 fi
    38 
    3932## Default value for init
    4033init="/sbin/init"
     
    5346$_MOUNT -t proc proc /proc
    5447$_MOUNT -t sysfs sysfs /sys
    55 $_MOUNT -t devtmpfs -o mode=0755 tmpfs /dev
     48$_MOUNT -t devtmpfs -o mode=0755 udev /dev
    5649$_MOUNT -t tmpfs -o mode=0755 tmpfs /run
    5750
     
    9487    $_GREP '^[^#]' /etc/udev/links.conf | while read type name args
    9588    do
    96         if [ "${type}" -a "${name}" -a ! -e "/dev/${name}" -a ! -L "/dev/${name}" ]
     89        if [ "${type}" -a "${name}" ]
    9790        then
    98             continue
     91            if [ ! -e "/dev/${name}" -o ! -L "/dev/${name}" ]
     92            then
     93                continue
     94            fi
    9995        fi
    10096        case "${type}" in
Note: See TracChangeset for help on using the changeset viewer.