Removing dead lang2locale function and associated files, not used anywhere.
[live-boot-grml.git] / scripts / boot / misc-helpers.sh
index fe45ee1..abb2dd2 100755 (executable)
@@ -2,6 +2,21 @@
 
 #set -e
 
+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=${1}
        shift