Changeset 97 in MondoRescue
- Timestamp:
- Nov 4, 2005, 11:51:13 PM (20 years ago)
- Location:
- branches/2.04_berlios
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.04_berlios/mindi/analyze-my-lvm
r30 r97 243 243 244 244 # -------------------------------- main ----------------------------------- 245 which lvmdiskscan >/dev/null 2>&1 || Die "Cannot find lvmdiskscan. Are you sure you're using LVM?"245 which lvmdiskscan 2>/dev/null 2>&1 || Die "Cannot find lvmdiskscan. Are you sure you're using LVM?" 246 246 if [ -e "/proc/lvm/global" ] && [ "`cat /proc/lvm/global | tr -s '\t' ' ' | grep "0 VGs 0 PVs 0 LVs"`" != "" ] ; then 247 247 exit 0 … … 253 253 #lvmversion=`lvmdiskscan --version | grep "LVM version:" | cut -d: -f2 | cut -d. -f1 | sed -e 's/ //g'` 254 254 255 lvmversion=`lvmdiskscan -- version|255 lvmversion=`lvmdiskscan --help | 256 256 grep -E "Logical Volume Manager|LVM version:" | 257 257 cut -d: -f2 | cut -d. -f1 | … … 259 259 sed -e 's/ //g'` 260 260 261 if which lvm ; then261 if which lvm 2>/dev/null; then 262 262 version=`lvm version | grep "LVM version" | awk '{print $3}'` 263 263 i="`echo "$version" | cut -d'.' -f1`" -
branches/2.04_berlios/mindi/mindi
r37 r97 117 117 which strings > /dev/null 2> /dev/null || Die "Please install binutils and libbinutils; you have no 'strings' executable." 118 118 which gawk > /dev/null 2> /dev/null || Die "Gawk is missing from your computer. Please install gawk. You may find the package on Debian's website. How did I know you're running Debian? Because only Debian would be stupid enough not to include gawk in your distribution." 119 which gawk > /dev/null 2> /dev/null && AWK=`which gawk ` ||AWK="`which awk`"119 which gawk > /dev/null 2> /dev/null && AWK=`which gawk 2>/dev/null` || AWK="`which awk 2>/dev/null`" 120 120 if which awk &> /dev/null ; then 121 121 if ! which gawk &> /dev/null ; then … … 296 296 copy_to=$1 297 297 copy_from=/boot/boot.b 298 liloc=`which lilo.real `299 [ $liloc ] || liloc=`which lilo `298 liloc=`which lilo.real 2>/dev/null` 299 [ $liloc ] || liloc=`which lilo 2>/dev/null` 300 300 if [ $liloc ]; then 301 301 if ! [ `strings $liloc | grep "boot\.b"` ]; then … … 936 936 GetHomeDir() { 937 937 local res loc 938 loc=`which $1 `938 loc=`which $1 2>/dev/null` 939 939 res=`file $loc | $AWK '{print $NF;}'` 940 940 dirname $res -
branches/2.04_berlios/tools/mkdeliv
r92 r97 46 46 scp ${rpms} ${SVNAUTH}:${DSTDIR}/${ddir}/${dver} 47 47 scp ${srpms} ${SVNAUTH}:${DSTDIR}/${ddir}/${dver} 48 echo "Sources delivery to ${FTPURL}" 49 ncftpput ${FTPURL} ${tgz} 48 echo "Sources delivery to ${FTPSERV} ${FTPDIR}" 49 if [ "`which ncftpput`" != "" ]; then 50 ncftpput ${FTPSERV} ${FTPDIR} ${tgz} 51 elif [ "`which lftp`" != "" ]; then 52 lftp -e "cd ${FTPDIR} ; put ${tgz} ; quit" ${FTPSERV} 53 fi -
branches/2.04_berlios/tools/rpm-env
r67 r97 10 10 export SVNAUTH=bcornec@shell.berlios.de 11 11 export DSTDIR=/home/groups/ftp/pub/mondorescue 12 export FTPURL="ftp.berlios.de /incoming" 12 export FTPSERV="ftp.berlios.de" 13 export FTPDIR="/incoming" 13 14 14 15 # Should not be modified below
Note:
See TracChangeset
for help on using the changeset viewer.