From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/date.xml.in | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 op-mode-definitions/date.xml.in (limited to 'op-mode-definitions/date.xml.in') diff --git a/op-mode-definitions/date.xml.in b/op-mode-definitions/date.xml.in new file mode 100644 index 000000000..15a69dbd9 --- /dev/null +++ b/op-mode-definitions/date.xml.in @@ -0,0 +1,64 @@ + + + + + + + Show system time and date + + /bin/date + + + + Show system date and time as Coordinated Universal Time + + /bin/date -u + + + + Show UTC date in Maya calendar format + + ${vyos_op_scripts_dir}/maya_date.py $(date +%s) + + + + + + + + + + + + Set system date and time + + <MMDDhhmm> <MMDDhhmmYY> <MMDDhhmmCCYY> <MMDDhhmmCCYY.ss> + + + /bin/date "$3" + + + + Set system date and time + + + + + Set system date and time from NTP server (default: 0.pool.ntp.org) + + /usr/sbin/ntpdate -u 0.pool.ntp.org + + + + Set system date and time from NTP server + + + + + /usr/sbin/ntpdate -u "$4" + + + + + + -- cgit v1.2.3