Changeset 1842 in MondoRescue for branches/stable/mindi/install.sh
- Timestamp:
- Dec 15, 2007, 2:24:34 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/install.sh
r1770 r1842 128 128 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$sublocal~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$subconf~" -e "s~^MINDI_LIB=LLL~MINDI_LIB=$sublocallib~" mindi > $local/sbin/mindi 129 129 sed -e "s~= "YYY"~= "$subconf"~" mindi-bkphw > $local/sbin/mindi-bkphw 130 sed -e "s~^my \$mindiconf=YYY~my \$mindiconf=\"$subconf\";~" mindi-bkphw > $local/sbin/mindi-bkphw131 chmod 755 $local/sbin/mindi $local/sbin/mindi-bkphw132 130 install -m 755 parted2fdisk.pl $local/sbin 133 131 … … 142 140 if [ "$ARCH" = "ia64" ] ; then 143 141 (cd $local/sbin && ln -sf parted2fdisk.pl parted2fdisk) 144 make -f Makefile.parted2fdisk DEST=$locallib/mindi install 145 if [ -f $locallib/mindi/rootfs/sbin/parted2fdisk-$ARCH ]; then 146 echo "Installing parted2fdisk ..." 147 install -s -m 755 $locallib/mindi/rootfs/sbin/parted2fdisk-$ARCH $locallib/mindi/rootfs/sbin/parted2fdisk 148 install -s -m 755 $locallib/mindi/rootfs/sbin/parted2fdisk-$ARCH $local/sbin/parted2fdisk 149 else 150 echo "WARNING: no parted2fdisk found, mindi will not work on this arch ($ARCH)" 151 fi 142 install -s -m 755 $local/sbin/parted2fdisk.pl $locallib/mindi/rootfs/sbin/parted2fdisk 143 # Try to avoid the need ot additional perl modules at the moment 144 perl -pi -e 's/use strict;//' $locallib/mindi/rootfs/sbin/parted2fdisk 152 145 else 153 146 # FHS requires fdisk under /sbin … … 156 149 ( cd $locallib/mindi/rootfs/sbin && ln -sf fdisk parted2fdisk) 157 150 fi 158 # Remove left parted2fdisk159 rm -f $locallib/mindi/rootfs/sbin/parted2fdisk-*160 151 161 152 if [ "$PKGBUILDMINDI" != "true" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.