projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aab7548
)
Removing useless whitespaces and empty lines.
author
Daniel Baumann
<daniel@debian.org>
Sat, 31 May 2008 22:44:03 +0000
(
00:44
+0200)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:47:59 +0000
(17:47 +0100)
bin/live-snapshot
patch
|
blob
|
history
diff --git
a/bin/live-snapshot
b/bin/live-snapshot
index
70073fc
..
199718f
100755
(executable)
--- a/
bin/live-snapshot
+++ b/
bin/live-snapshot
@@
-95,7
+95,6
@@
Usage ()
exit 0
}
exit 0
}
-
Version ()
{
Version ()
{
@@
-197,7
+196,6
@@
Parse_args ()
esac
done
esac
done
-
}
Defaults ()
}
Defaults ()
@@
-229,7
+227,6
@@
Defaults ()
Error "unrecognized resync string"
;;
esac
Error "unrecognized resync string"
;;
esac
-
else
# Set target file based on image
case "${SNAP_TYPE}" in
else
# Set target file based on image
case "${SNAP_TYPE}" in
@@
-246,14
+243,14
@@
Defaults ()
;;
esac
fi
;;
esac
fi
-
}
Validate_input ()
{
}
Validate_input ()
{
- case "${SNAP_TYPE}" in
+ case "${SNAP_TYPE}" in
cpio|squashfs|jffs2|ext2|ext3)
;;
cpio|squashfs|jffs2|ext2|ext3)
;;
+
*)
Error "invalid filesystem type \"${SNAP_TYPE}\""
;;
*)
Error "invalid filesystem type \"${SNAP_TYPE}\""
;;
@@
-279,6
+276,7
@@
Mount_device ()
# create a temp
mount -t tmpfs -o rw tmpfs "${MOUNTP}"
;;
# create a temp
mount -t tmpfs -o rw tmpfs "${MOUNTP}"
;;
+
*)
if [ -b "${SNAP_DEV}" ]
then
*)
if [ -b "${SNAP_DEV}" ]
then
@@
-333,7
+331,7
@@
Main ()
Parse_args "${@}"
Defaults
Validate_input
Parse_args "${@}"
Defaults
Validate_input
- trap 'Clean' EXIT
+ trap 'Clean' EXIT
Mount_device
Do_snapshot
}
Mount_device
Do_snapshot
}