summaryrefslogtreecommitdiffstats
path: root/liveinit
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-05-18 09:25:07 +0200
committer Eric Hameleers <alien@slackware.com>2016-05-18 09:25:07 +0200
commit3b92d1adb9247b0832df7fc0de295d1ef3c51fc0 (patch)
tree318ffb324e7a873380a71e64c8b6605c62d1634d /liveinit
parentc17bec4ce7654576ae797e06dc80db3e29eb1948 (diff)
downloadliveslak-3b92d1adb9247b0832df7fc0de295d1ef3c51fc0.tar.gz
liveslak-3b92d1adb9247b0832df7fc0de295d1ef3c51fc0.tar.xz
Git rid of a (harmless) error message during boot.
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