Changeset 7254832 in bootscripts-standard


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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r7355219 r7254832  
    7676        install -m ${MODE} clfs/init.d/template      ${EXTDIR}/rc.d/init.d/
    7777        install -m ${MODE} clfs/init.d/udev          ${EXTDIR}/rc.d/init.d/
     78        sed -i "s:@LIBDIR@:$(LIBDIR):g" ${EXTDIR}/rc.d/init.d/udev
    7879        ln -sf ../init.d/network     ${EXTDIR}/rc.d/rc0.d/K80network
    7980        ln -sf ../init.d/sysklogd    ${EXTDIR}/rc.d/rc0.d/K90sysklogd
     
    141142        install -m ${MODE} clfs/init.d/swap                     ${EXTDIR}/rc.d/init.d/
    142143        install -m ${MODE} clfs/init.d/udev                     ${EXTDIR}/rc.d/init.d/
     144        sed -i "s:@LIBDIR@:$(LIBDIR):g" ${EXTDIR}/rc.d/init.d/udev
    143145        ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals
    144146        ln -sf ../init.d/mountfs     ${EXTDIR}/rc.d/rc0.d/S70mountfs
  • 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.