diff options
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 |
commit | 3b92d1adb9247b0832df7fc0de295d1ef3c51fc0 (patch) | |
tree | 318ffb324e7a873380a71e64c8b6605c62d1634d /liveinit | |
parent | c17bec4ce7654576ae797e06dc80db3e29eb1948 (diff) | |
download | liveslak-3b92d1adb9247b0832df7fc0de295d1ef3c51fc0.tar.gz liveslak-3b92d1adb9247b0832df7fc0de295d1ef3c51fc0.tar.xz |
Git rid of a (harmless) error message during boot.
Diffstat (limited to 'liveinit')
-rwxr-xr-x | liveinit | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |