summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-09-16 11:39:39 +0200
committerGitHub <noreply@github.com>2024-09-16 11:39:39 +0200
commit11164c87635d779c41683b19d6d6e97d587c4267 (patch)
treea7f4323977a832a6a9179f649ade8f8ed0e27f5b
parentbe892a01be36df2d0530654f2d07707d2d402508 (diff)
parent835126e249c1a8b7ae87ac169a8eb9d2df979249 (diff)
downloadvyos-1x-11164c87635d779c41683b19d6d6e97d587c4267.tar.gz
vyos-1x-11164c87635d779c41683b19d6d6e97d587c4267.zip
Merge pull request #4071 from c-po/date-time-T6715
op-mode: T6715: manually changing time/date is not synced into hardware clock
-rw-r--r--op-mode-definitions/date.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/date.xml.in b/op-mode-definitions/date.xml.in
index 6d8586025..4e62a8335 100644
--- a/op-mode-definitions/date.xml.in
+++ b/op-mode-definitions/date.xml.in
@@ -35,7 +35,7 @@
<list>&lt;MMDDhhmm&gt; &lt;MMDDhhmmYY&gt; &lt;MMDDhhmmCCYY&gt; &lt;MMDDhhmmCCYY.ss&gt;</list>
</completionHelp>
</properties>
- <command>/bin/date "$3"</command>
+ <command>sudo bash -c "/bin/date '$3' &amp;&amp; hwclock --systohc --localtime"</command>
</tagNode>
</children>
</node>