From 60a4f0657b5b4f2eb38049bf8fa66836bc31a2d0 Mon Sep 17 00:00:00 2001 From: nagumii Date: Mon, 20 Jan 2025 22:46:28 +0200 Subject: [PATCH] Remove redundant notification screen from timezone set --- .../rootfs_uclibc_rv1106/usr/local/bin/femto-set-time.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-time.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-time.sh index e8f2812..3d73f7c 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-time.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-set-time.sh @@ -25,10 +25,8 @@ log_message() { } set_timezone() { - if timedatectl set-timezone "$1"; then - log_message "\nTime zone set to $1 (UTC$(date +%z)) successfully." - else - log_message "\nFailed to set the time zone to $1." + if ! timedatectl set-timezone "$1"; then + log_message "\nFailed to set the time zone to $1." exit 1 fi }