Changeset 5533

Show
Ignore:
Timestamp:
12/06/08 21:26:51 (6 years ago)
Author:
khali
Message:

Use udev settle to speed up initialization.

Location:
i2c-tools/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/CHANGES

    r5453 r5533  
    11i2c-tools CHANGES 
    22----------------- 
     3 
     4SVN 
     5  i2c-stub-from-dump: Use udev settle to speed up initialization 
    36 
    473.0.2 (2008-11-29) 
  • i2c-tools/trunk/stub/i2c-stub-from-dump

    r5293 r5533  
    9595                system("/sbin/modprobe", "i2c-stub") == 0 || exit 1; 
    9696        } 
    97         sleep(1); # udev may take some time to create the device node 
     97        # udev may take some time to create the device node 
     98        if (!(-x "/sbin/udevadm" && system("/sbin/udevadm settle") == 0) 
     99         && !(-x "/sbin/udevsettle" && system("/sbin/udevsettle") == 0)) { 
     100                sleep(1); 
     101        } 
    98102 
    99103        $nr = get_i2c_stub_bus_number();