Changeset 2605 in MondoRescue
- Timestamp:
- Mar 22, 2010, 1:56:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mindi/mindi
r2604 r2605 156 156 LogFile "Added kbd map $mappath" 157 157 if [ ! -e "$mappath" ] ; then 158 158 mappath=`grep "i[3-8]86" $MINDI_TMP/keymaps.find | grep "$locale[^r][^/]" | grep -vx " *#.*"` 159 159 if [ ! -e "$mappath" ] ; then 160 160 LogAll "Cannot add $mappath: kbd map file not found" … … 602 602 603 603 604 GetHomeDir() {605 local res loc606 loc=`which $1 2>/dev/null`607 res=`file $loc | $AWK '{print $NF;}'`608 dirname $res609 }610 611 612 604 # Check kernel filesystem capabilites for accessing initrd image 613 605 # Could be ext2 FS (old mode) or initramfs (new mode) … … 672 664 673 665 } 674 675 # Searches parent raid device of given disk device676 # $1: disk device (i.e. /dev/hda1)677 GetParentRaidDev() {678 $AWK "/^[[:space:]]*#/ {next} /^[[:space:]]*raiddev/ {dev=\$2} /^[[:space:]]*device/ {if(\$2==\"$1\") {print dev; exit}}" < /etc/raidtab679 }680 681 666 682 667 # Searches members of raid device … … 1329 1314 } 1330 1315 1331 MakeSureNumberIsInteger() {1332 res=`echo "$1" | tr -s '\-[0-9]' ' '`1333 if [ "$res" != " " ] && [ "$res" != "" ] ; then1334 echo "result = '$res'"1335 Die "$1 should be an integer"1336 fi1337 }1338 1339 1340 1316 OfferToMakeBootableISO() { 1341 1317 local i old_pwd … … 1992 1968 fi 1993 1969 } 1994 1995 1996 StripComments()1997 {1998 local tempfile1999 2000 tempfile=$MINDI_TMP/$$.strip.txt2001 cp -f $1 $tempfile 2>> $LOGFILE2002 $AWK '{if (substr($0,0,1)!="#" || substr($0,0,3)=="#!/") {print $0;};}' $tempfile > $12003 rm -f $tempfile2004 LogFile "Stripped comments from $2"2005 }2006 2007 1970 2008 1971 … … 2404 2367 LogFile "-----------------------------" 2405 2368 2369 # TODO: Remove that 2406 2370 [ -e "/sbin/mkdosfs" ] && [ ! -e "/sbin/mkfs.vfat" ] && ln -sf /sbin/mkdosfs /sbin/mkfs.vfat 2407 2371 2408 2372 # Log some capital variables 2409 2373 [ "$MINDI_PREFIX" = "XXX" ] && Die "Mindi has not been installed correctly." 2374 [ "$MINDI_CONF" = "YYY" ] && Die "Mindi has not been installed correctly." 2410 2375 LogFile "MONDO_SHARE = $MONDO_SHARE" 2411 2376 LogFile "MINDI_DATA = $MINDI_DATA" 2412 2377 LogFile "MINDI_SBIN = $MINDI_SBIN" 2413 [ "$MINDI_CONF" = "YYY" ] && Die "Mindi has not been installed correctly."2414 2378 LogFile "MINDI_CONF = $MINDI_CONF" 2415 2379 if [ -f $MINDI_CONFIG ]; then … … 2452 2416 fi 2453 2417 2454 ### BERLIOS2418 ### TODO 2455 2419 ### Fix as it's not mandatory on ia64 2456 2420 if [ "$ARCH" = "ia64" ] ; then
Note:
See TracChangeset
for help on using the changeset viewer.