Changeset 2755


Ignore:
Timestamp:
Apr 7, 2011, 9:49:38 AM (9 years ago)
Author:
bruno
Message:
  • Adds a UdevadmTrigger? function at restore time to deal with the various syntax formats changes ddepending on version (mc_at_carreira.com.pt)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2731 r2755  
    689689}
    690690
     691UdevadmTrigger() {
     692    if [ `/sbin/udevadm --version` -ge 146 ]; then
     693        /sbin/udevadm triger --type=failed
     694    else
     695        /sbin/udevadm trigger --retry-failed
     696    fi
     697}
     698
    691699ExtractDataDisksAndLoadModules() {
    692700    echo "Installing additional tools ..."
     
    701709    # (useful for rules creating network ifcfg files)
    702710    if [ -e "/tmp/USE-UDEV" ] ; then
    703         if [ -x /sbin/udevadm ]; then
    704             /sbin/udevadm trigger --retry-failed
    705         fi
     711        UdevadmTrigger
    706712    fi
    707713}
     
    909915if [ -e "/tmp/USE-UDEV" ] ; then
    910916    if [ -x /sbin/udevadm ]; then
    911         /sbin/udevadm trigger --retry-failed
     917        UdevadmTrigger
    912918    fi
    913919fi
Note: See TracChangeset for help on using the changeset viewer.