diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:27 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:27 +0200 |
| commit | 0a8e85ff66e30694a0583614f0ae90c36e8d44f6 (patch) | |
| tree | 041cfaabacb5e5d1d090fe30d90cbb0683278b12 /scripts/casper-functions | |
| parent | 40c6f4508ec0868d331e346e9d7b1c44cce01966 (diff) | |
| download | live-boot-0a8e85ff66e30694a0583614f0ae90c36e8d44f6.tar.gz live-boot-0a8e85ff66e30694a0583614f0ae90c36e8d44f6.zip | |
Adding casper 1.77+debian-4.
Diffstat (limited to 'scripts/casper-functions')
| -rw-r--r-- | scripts/casper-functions | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/scripts/casper-functions b/scripts/casper-functions index 9e36db7..2603eba 100644 --- a/scripts/casper-functions +++ b/scripts/casper-functions @@ -1,12 +1,25 @@ . /scripts/functions +. /casper.vars # Override this so we don't call PROGRESS log_end_msg() { - if [ -x /sbin/usplash_write ]; then - /sbin/usplash_write "SUCCESS ok" - fi - _log_msg "Done." + if [ -x /sbin/usplash_write ]; then + /sbin/usplash_write "SUCCESS ok" + fi + _log_msg "Done." } +really_export () +{ + STRING="${1}" + VALUE="$(eval echo -n \${$STRING})" + + if [ -f /casper.vars ] && cat /casper.vars | grep -sq "export ${STRING}" ; then + sed -i -e 's/\('${STRING}'=\).*$/\1'${VALUE}'/' /casper.vars + else + echo "export ${STRING}=\"${VALUE}\"" >> /casper.vars + fi + eval export "${STRING}"="${VALUE}" +}
\ No newline at end of file |
