diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:37 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:25:54 +0100 |
commit | 3d52fbcb4fe70132ade14759d76573b471294800 (patch) | |
tree | 7ee8e69a62e032cb427e6b3ae96481ae4e8c9df8 /scripts/live-functions | |
parent | 9fc9e2a1a11b0edada38cb501fefe4f58aa414ac (diff) | |
download | live-boot-3d52fbcb4fe70132ade14759d76573b471294800.tar.gz live-boot-3d52fbcb4fe70132ade14759d76573b471294800.zip |
Adding live-initramfs 1.87.3-1.
Diffstat (limited to 'scripts/live-functions')
-rw-r--r-- | scripts/live-functions | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/live-functions b/scripts/live-functions index 60721b4..7100603 100644 --- a/scripts/live-functions +++ b/scripts/live-functions @@ -1,5 +1,6 @@ . /scripts/functions +. /live.vars # Override this so we don't call PROGRESS log_end_msg() @@ -19,3 +20,16 @@ log_wait_msg() fi _log_msg "Waiting: $@ ..." } + +really_export () +{ + STRING="${1}" + VALUE="$(eval echo -n \${$STRING})" + + if [ -f /live.vars ] && cat /live.vars | grep -sq "export ${STRING}" ; then + sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars + else + echo "export ${STRING}=\"${VALUE}\"" >> /live.vars + fi + eval export "${STRING}"="${VALUE}" +} |