Changeset 275 in MondoRescue for branches/2.06/mondo/mondo/mondo-makefilelist
- Timestamp:
- Jan 3, 2006, 4:59:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/mondo-makefilelist
r273 r275 1 1 #!/bin/sh 2 # 3 # $Id$ 4 2 5 # 3 6 # mondo-makefilelist … … 82 85 res=`grep -v "Permission denied" $TMP/find.log` 83 86 if [ "$res" != "" ] ; then 84 cat $TMP/find.log 85 cat $TMP/find.log >> $LOGFILE 87 cat $TMP/find.log | tee -a $LOGFILE 86 88 fi 87 89 # include various directory _paths_ (not contents of dirs: that comes later) … … 105 107 106 108 # Patch from Andy Glass - 03/03/2002 107 for i in ` cat /etc/fstab | tr -s '\t' ' '| cut -d' ' -f2 | grep -v '-'` ; do109 for i in `tr -s '\t' ' ' < /etc/fstab | cut -d' ' -f2 | grep -v '-'` ; do 108 110 # End patch 109 # for i in `cat /etc/fstab | tr -s '\t' ' ' | cut -d' ' -f2` ; do110 111 grep -vx "$i/lost+found" $output | grep -vx $i"lost+found" > $output.MID 111 112 sync … … 113 114 done 114 115 # exclude .journal files (ext3) 115 for i in ` cat /etc/fstab | tr -s '\t' ' '| grep "ext3" | cut -d' ' -f2` ; do116 for i in `tr -s '\t' ' ' < /etc/fstab | grep "ext3" | cut -d' ' -f2` ; do 116 117 grep -vx "$i/\.journal" $output | grep -vx "$i\.journal" | grep -vx "$i\.autofsck" > $output.MID 117 118 sync
Note:
See TracChangeset
for help on using the changeset viewer.