Ignore:
Timestamp:
Dec 14, 2005, 3:53:19 PM (14 years ago)
Author:
bcornec
Message:

Update on failsafe kernel to adapt it to the new mindi layout in /usr/lib/mindi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mindi-failsafe-kernel/install.sh

    r30 r202  
    55    exit 1
    66fi
    7 local=/usr/local
    8 mkdir -p $local/share/mindi
    9 mkdir -p $local/sbin
    107
    11 cp --parents -pRdf * $local/share/mindi/
    12 exit 0
     8if [ "_$PREFIX" != "_" ]; then
     9        local=$PREFIX/usr
     10        if [ -f /usr/local/sbin/mindi ]; then
     11                echo "WARNING: /usr/local/sbin/mindi exists. You should probably
     12 remove it !"
     13        fi
     14        echo $PATH | grep /usr/sbin > /dev/null || echo "Warning - your PATH env
     15ironmental variable is BROKEN. Please add /usr/sbin to your PATH."
     16else
     17        local=/usr/local
     18        if [ -f /usr/sbin/mindi ]; then
     19                echo "WARNING: /usr/sbin/mindi exists. You should probably remov
     20e the mindi package !"
     21        fi
     22        echo $PATH | grep $local/sbin > /dev/null || echo "Warning - your PATH e
     23nvironmental variable is BROKEN. Please add $local/sbin to your PATH."
     24
     25fi
     26
     27echo "mindi-failsafe-kernel will be installed under $local"
     28
     29echo "Creating target directories ..."
     30mkdir -p $local/lib/mindi
     31
     32echo "Copying files ..."
     33cp -a lib.tar.bz2 vmlinuz $local/lib/mindi/
Note: See TracChangeset for help on using the changeset viewer.