projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for files and umount only if you can mount it first.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
01integrity_check
diff --git
a/scripts/live-bottom/01integrity_check
b/scripts/live-bottom/01integrity_check
index
b855b62
..
e4710f3
100755
(executable)
--- a/
scripts/live-bottom/01integrity_check
+++ b/
scripts/live-bottom/01integrity_check
@@
-20,4
+20,10
@@
esac
# live-initramfs script
# live-initramfs script
-grep integrity-check /proc/cmdline && live-md5check /live/image /live/image/md5sum.txt < /dev/tty8
+if grep -qs integrity-check /proc/cmdline
+then
+ cd /live/image
+ md5sum -c md5sum.txt < /dev/tty8 > /dev/tty8
+ reboot
+ while :; do sleep 60; done
+fi