projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Including wc in initramfs (Closes: #512413).
[live-boot-grml.git]
/
scripts
/
live-functions
diff --git
a/scripts/live-functions
b/scripts/live-functions
index
49b4a3a
..
8bf9c38
100644
(file)
--- a/
scripts/live-functions
+++ b/
scripts/live-functions
@@
-21,7
+21,7
@@
really_export ()
STRING="${1}"
VALUE="$(eval echo -n \${$STRING})"
STRING="${1}"
VALUE="$(eval echo -n \${$STRING})"
- if [ -f /live.vars ] &&
cat /live.vars | grep -sq "export ${STRING}"
+ if [ -f /live.vars ] &&
grep -sq "export ${STRING}" /live.vars
then
sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
else
then
sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars
else
@@
-60,6
+60,16
@@
lang2locale() {
fi
}
fi
}
+# Override maybe_break from scripts/functions
+maybe_break()
+{
+ if [ "${break}" = "$1" ]; then
+ # Call original panic
+ . /scripts/functions
+ panic "Spawning shell within the initramfs"
+ fi
+}
+
# Override panic from scripts/functions
panic() {
# Override panic from scripts/functions
panic() {