projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename 18hostname -> 06hostname
[live-boot-grml.git]
/
bin
/
live-snapshot
diff --git
a/bin/live-snapshot
b/bin/live-snapshot
index
ffa4670
..
5135ce3
100755
(executable)
--- a/
bin/live-snapshot
+++ b/
bin/live-snapshot
@@
-57,7
+57,7
@@
fi
MOUNTP=""
COW=""
DEV=""
MOUNTP=""
COW=""
DEV=""
-DEST=""
+DEST="
${MOUNTP}/live-sn.cpio.gz
"
TYPE=""
DESKTOP_LINK=""
TYPE=""
DESKTOP_LINK=""
@@
-331,8
+331,24
@@
Defaults ()
;;
esac
;;
esac
- #if [ -d
- #if Is_same_mount
+ case "${TYPE}" in
+ cpio)
+ DEST="${MOUNTP}/live-sn.cpio.gz"
+ ;;
+
+ squashfs)
+ DEST="${MOUNTP}/live-sn.squashfs"
+ ;;
+
+ ext2)
+ DEST="${MOUNTP}/live-sn.ext2"
+ ;;
+
+ *)
+ echo "Internal error."
+ exit 1
+ ;;
+ esac
fi
# check vars
fi
# check vars