From: Daniel Baumann Date: Mon, 24 Jun 2013 20:12:40 +0000 (+0200) Subject: Dropping really_export dead code. X-Git-Tag: debian/4.0_a14-1~11 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=3da00deab98dc5999f4583d05d164e2549efa6b2 Dropping really_export dead code. --- diff --git a/components/9990-aaa-fixme.sh b/components/9990-aaa-fixme.sh index 8c7371b..3309c81 100755 --- a/components/9990-aaa-fixme.sh +++ b/components/9990-aaa-fixme.sh @@ -28,8 +28,3 @@ fi custom_overlay_label="persistence" persistence_list="persistence.conf" - -if [ ! -f /live.vars ] -then - touch /live.vars -fi diff --git a/components/9990-main.sh b/components/9990-main.sh index e67176e..83f087f 100755 --- a/components/9990-main.sh +++ b/components/9990-main.sh @@ -16,8 +16,6 @@ Live () tail -f boot.log >&7 & tailpid="${!}" - . /live.vars - LIVE_BOOT_CMDLINE="${LIVE_BOOT_CMDLINE:-$(cat /proc/cmdline)}" Cmdline_old diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh index 245e9da..d85a1d1 100755 --- a/components/9990-misc-helpers.sh +++ b/components/9990-misc-helpers.sh @@ -329,21 +329,6 @@ find_livefs () return 1 } -really_export () -{ - STRING="${1}" - VALUE="$(eval echo -n \${$STRING})" - - if [ -f /live.vars ] && grep -sq "export ${STRING}" /live.vars - then - sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /live.vars - else - echo "export ${STRING}=\"${VALUE}\"" >> /live.vars - fi - - eval export "${STRING}"="${VALUE}" -} - is_in_list_separator_helper () { local sep element list