Changeset 3252

Show
Ignore:
Timestamp:
02/11/06 12:59:41 (8 years ago)
Author:
khali
Message:

Silently skip aready exiting nodes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/mkdev/mkdev.sh

    r2921 r3252  
    2424 
    2525while [ $i -lt $NUMBER ] ; do 
    26         echo /dev/i2c-$i 
    27         mknod -m $MODE /dev/i2c-$i c 89 $i || exit 
    28         chown "$OUSER:$OGROUP" /dev/i2c-$i || exit 
     26        if [ ! -c /dev/i2c-$i ] ; then 
     27                echo /dev/i2c-$i 
     28                mknod -m $MODE /dev/i2c-$i c 89 $i || exit 
     29                chown "$OUSER:$OGROUP" /dev/i2c-$i || exit 
     30        fi 
    2931        i=$[$i + 1] 
    3032done