Skip to content

Commit

Permalink
update s04timezone logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gtxaspec committed May 19, 2024
1 parent 8c2d9ab commit 4c124c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions overlay/lower/etc/init.d/S04timezone
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/sh

start() {
echo -n "Setting Timezone: "
echo -n "Starting Timezone: "
# Get the timezone from the u-boot environment variable
timezone=$(fw_printenv -n timezone 2> /dev/null)
if [ -z "$timezone" ]; then
echo "Using system default"
echo "UTC0"
exit 1
fi

Expand All @@ -16,7 +16,6 @@ start() {
current_tz_value=$(cat /etc/TZ 2> /dev/null)

if [ "$timezone" = "$current_timezone" ] && [ "$timezone" = "$current_tz_value" ]; then
echo "Timezone settings are up to date"
exit 0
fi

Expand All @@ -39,7 +38,7 @@ start() {

export TZ=$value

echo "OK"
echo "$timezone"
}

case "$1" in
Expand Down

0 comments on commit 4c124c9

Please sign in to comment.