live-snapshot: removed an unused and useless function.
[live-boot-grml.git] / bin / live-snapshot
index dc1fa6d..d4c6c34 100755 (executable)
@@ -125,19 +125,6 @@ Version ()
        exit 0
 }
 
-Is_same_mount ()
-{
-       dir1="$(Base_path ${1})"
-       dir2="$(Base_path ${2})"
-
-       if [ "${dir1}" = "${dir2}" ]
-       then
-               return 0
-       else
-               return 1
-       fi
-}
-
 Parse_args ()
 {
        # Parse command line
@@ -206,7 +193,7 @@ Defaults ()
        then
                SNAP_COW=$(echo "${SNAP_RESYNC_STRING}" | cut -f1 -d ':')
                SNAP_DEV=$(echo "${SNAP_RESYNC_STRING}" | cut -f2 -d ':')
-               DEST=$(echo "${SNAP_RESYNC_STRING}" | cut -f3 -d ':')
+               DEST="${MOUNTP}/$(echo ${SNAP_RESYNC_STRING} | cut -f3 -d ':')"
 
                case "${DEST}" in
                        *.cpio.gz)