diff options
Diffstat (limited to 'archivers/dar/patches')
-rw-r--r-- | archivers/dar/patches/patch-ae | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/archivers/dar/patches/patch-ae b/archivers/dar/patches/patch-ae new file mode 100644 index 00000000000..92d4aad208a --- /dev/null +++ b/archivers/dar/patches/patch-ae @@ -0,0 +1,39 @@ +$NetBSD: patch-ae,v 1.3 2006/10/08 22:14:54 rillig Exp $ + +--- doc/samples/cdbackup.sh.orig 2003-07-22 23:01:34.000000000 +0200 ++++ doc/samples/cdbackup.sh 2006-10-08 23:37:24.000000000 +0200 +@@ -72,8 +72,8 @@ RM="/bin/rm" + #initial call of this script (just executes dar with the proper parameters): + DATE=`$DATECMD -I` + START=`$DATECMD` +-if [ "$1" != "" ] && [ "$2" == "" ] ; then +- if [ "$1" == "full" ] ; then ++if [ $# -eq 1 ] ; then ++ if [ "$1" = "full" ] ; then + echo "starting full backup" + $DAR_EXEC -c "$TDIR/$DATE" \ + -X "$DATE.*.dar" -X "darswap" \ +@@ -95,7 +95,7 @@ elif [ -r "$1/$2.$3.dar" ] ; then + echo -n "creating cdr $3 volume dir containing $2.$3.dar" + $MKDIR "$1/$2.$3.cdr" + $MV "$1/$2.$3.dar" "$1/$2.$3.cdr" +- if [ "$3" == "1" ] ; then ++ if [ "$3" = "1" ] ; then + echo -n " and dar_static" + $CP $DAR_STATIC "$1/$2.$3.cdr" + fi +@@ -109,12 +109,12 @@ elif [ -r "$1/$2.$3.dar" ] ; then + $CDRECORD -eject -s dev=$DEV speed=$DRIVESPEED tsize=${CDBLOCKS}s - + do + read -p "write error, try [A]gain or [k]eep $2.$3.dar? " ERR +- if [ "$ERR" == "k" ] ; then ++ if [ "$ERR" = "k" ] ; then + KEEPFILE="y" + break + fi + done +- if [ "$KEEPFILE" == "y" ] ; then ++ if [ "$KEEPFILE" = "y" ] ; then + echo "cdr not written, keeping $2.$3.dar as file" + $MV "$1/$2.$3.cdr/$2.$3.dar" "$1/$2.$3.dar" + fi |