summaryrefslogtreecommitdiffstats
path: root/liveinit
diff options
context:
space:
mode:
Diffstat (limited to 'liveinit')
-rwxr-xr-xliveinit12
1 files changed, 8 insertions, 4 deletions
diff --git a/liveinit b/liveinit
index ad44fa2..2a58fd4 100755
--- a/liveinit
+++ b/liveinit
@@ -842,10 +842,14 @@ EOT
echo ${TZ} > /mnt/overlay/etc/timezone
# KDE4 and PLASMA5 user timezone re-configuration:
- sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \
- /mnt/overlay/home/live/.kde/share/config/ktimezonedrc
- sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \
- /mnt/overlay/home/live/.config/ktimezonedrc
+ if [ -f /mnt/overlay/home/live/.kde/share/config/ktimezonedrc ]; then
+ sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \
+ /mnt/overlay/home/live/.kde/share/config/ktimezonedrc
+ fi
+ if [ -f /mnt/overlay/home/live/.config/ktimezonedrc ]; then
+ sed -i -e "s%^LocalZone=.*%LocalZone=${TZ}%" \
+ /mnt/overlay/home/live/.config/ktimezonedrc
+ fi
fi
if [ ! -z "$LIVEPW" ]; then