- if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "INPUTENTER $@"
- read nunya < /dev/.initramfs/usplash_outfifo
+ 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