From fd77cd880518f288b2c4a8d5885b41ef829db04c Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 14 Feb 2009 15:50:23 +0100 Subject: port of FS#13101 - simple fix to setup script writing timezone to rc.conf --- src/core/procedures/interactive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/procedures') diff --git a/src/core/procedures/interactive b/src/core/procedures/interactive index dc4232a..08bdf23 100644 --- a/src/core/procedures/interactive +++ b/src/core/procedures/interactive @@ -120,7 +120,8 @@ worker_configure_system() # /etc/rc.conf # Make sure timezone and utc info are what we want - sed -i -e "s/^TIMEZONE=.*/TIMEZONE=\"$TIMEZONE\"/g" \ + # NOTE: If a timezone string never contains more then 1 slash, we can use ${TIMEZONE/\//\\/} + sed -i -e "s/^TIMEZONE=.*/TIMEZONE=\"${TIMEZONE//\//\\/}\"/g" \ -e "s/^HARDWARECLOCK=.*/HARDWARECLOCK=\"$HARDWARECLOCK\"/g" \ ${var_TARGET_DIR}/etc/rc.conf -- cgit v1.2.3-54-g00ecf