Changeset 1968

Show
Ignore:
Timestamp:
07/20/07 07:31:25 (18 months ago)
Author:
alexander
Message:

Fixed the following things in the shutdown helper:

  • detection of the case when the CD runs from a partition
  • dereferencing of /dev/lfs-cd symlink when copying it
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/scripts/shutdown-helper

    r1950 r1968  
    3737esac 
    3838 
    39 if [ ! -b /dev/lfs-cd ] && [ ! -d /.tmpfs/.partition ] ; then 
     39if [ ! -b /dev/lfs-cd ] && [ ! -d /dev/shm/.partition ] ; then 
    4040        # The CD has been loaded into RAM 
    4141        $HALT 
     
    4646ln -s /proc/mounts /dev/shm/etc/mtab 
    4747echo "$FILES" | cpio -pLd --quiet /dev/shm 
    48 if [ -b /dev/lfs-cd ] ; then cp -a /dev/lfs-cd /dev/shm/dev/lfs-cd ; fi 
     48if [ -b /dev/lfs-cd ] ; then cp -RH /dev/lfs-cd /dev/shm/dev/lfs-cd ; fi 
    4949 
    5050cat >/dev/shm/sbin/init <<EOF