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
d5bc5fe
..
e4710f3
100755
(executable)
--- a/
scripts/live-bottom/01integrity_check
+++ b/
scripts/live-bottom/01integrity_check
@@
-1,18
+1,29
@@
#!/bin/sh
#!/bin/sh
+#set -e
+
+# initramfs-tools header
+
PREREQ=""
prereqs()
{
PREREQ=""
prereqs()
{
- echo "$
PREREQ
"
+ echo "$
{PREREQ}
"
}
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
esac
-grep integrity-check /proc/cmdline && live-md5check /cdrom /cdrom/md5sum.txt < /dev/tty8
+# live-initramfs script
+
+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