Changeset 7254832 in bootscripts-standard for clfs/init.d/udev


Ignore:
Timestamp:
Feb 2, 2008, 9:18:23 AM (17 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
47edfd4
Parents:
7355219
Message:

Have the udev script match the LIBDIR reference in the Makefile. This ensures that it will always work. Also use udevadm for udevtrigger and udevsettle. The two have been symlinked to udevadm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • clfs/init.d/udev

    r7355219 r7254832  
    2020. ${rc_functions}
    2121
    22 if [ -d "/lib64" ]; then
    23         udev_libdir=/lib64
    24 else
    25         udev_libdir=/lib
    26 fi
    27 
    2822case "$1" in
    2923    start)
     
    3327
    3428        boot_mesg "Copying static entries..."
    35         cp --preserve=all --recursive --remove-destination ${udev_libdir}/udev/devices/* /dev
     29        cp --preserve=all --recursive --remove-destination @LIBDIR@/udev/devices/* /dev
    3630        evaluate_retval
    3731       
     
    5448
    5549        # configure all devices
    56         /sbin/udevtrigger
     50        /sbin/udevadm trigger
    5751       
    5852        # this replaces the old loop, exits after all devices are done
    59         /sbin/udevsettle
     53        /sbin/udevadm settle
    6054
    6155        echo_ok
     
    8175        boot_mesg "Reloading udev rules..."
    8276        udevcontrol reload_rules
    83         cp --preserve=all --recursive --update ${udev_libdir}/udev/devices/* /dev
     77        cp --preserve=all --recursive --update @LIBDIR@/udev/devices/* /dev
    8478        evaluate_retval
    8579        ;;
     
    8983        udevcontrol reload_rules
    9084        rm -rf /dev/.udev /dev/disk
    91         cp --preserve=all --recursive --update ${udev_libdir}/udev/devices/* /dev
    92         /sbin/udevtrigger
    93         /sbin/udevsettle
     85        cp --preserve=all --recursive --update @LIBDIR@/udev/devices/* /dev
     86        /sbin/udevadm trigger
     87        /sbin/udevadm settle
    9488        evaluate_retval
    9589        ;;
     
    10094        ;;
    10195esac
    102 
    103 unset udev_libdir
Note: See TracChangeset for help on using the changeset viewer.