source: trunk/mindi-kernel/install.sh

Last change on this file was 219, checked in by bcornec, 12 years ago

merge -r176:218 $SVN_M/branches/2.05

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1#!/bin/sh
2
3if [ ! -f "install.sh" ] ; then
4    echo "Please 'cd' to the directory you have just untarred." >> /dev/stderr
5    exit 1
6fi
7
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 TracBrowser for help on using the repository browser.