summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-12-09 23:48:23 +0100
committerDaniil Baturin <daniil@baturin.org>2019-12-09 23:48:23 +0100
commit596ede052e49b81e8fee6ed1cfd8ff350f4c6837 (patch)
treee4d48f2d13fd1e9d8fdf331b644498e76cf394d8 /templates
parent209029dcf216a3e30cbdd394c205ac9908cce313 (diff)
downloadvyatta-op-596ede052e49b81e8fee6ed1cfd8ff350f4c6837.tar.gz
vyatta-op-596ede052e49b81e8fee6ed1cfd8ff350f4c6837.zip
T1855: use the new script for "show reboot/poweroff".
Diffstat (limited to 'templates')
-rw-r--r--templates/show/poweroff/node.def2
-rw-r--r--templates/show/reboot/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/show/poweroff/node.def b/templates/show/poweroff/node.def
index a65f4e6..1505800 100644
--- a/templates/show/poweroff/node.def
+++ b/templates/show/poweroff/node.def
@@ -1,2 +1,2 @@
help: Show scheduled poweroff
-run: sudo /opt/vyatta/bin/sudo-users/vyatta-poweroff.pl --action show_poweroff
+run: sudo /usr/libexec/vyos/op_mode/powerctrl.py --check
diff --git a/templates/show/reboot/node.def b/templates/show/reboot/node.def
index 882f700..dfb00d4 100644
--- a/templates/show/reboot/node.def
+++ b/templates/show/reboot/node.def
@@ -1,2 +1,2 @@
help: Show scheduled reboot
-run: sudo /opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action show_reboot
+run: /usr/libexec/vyos/op_mode/powerctrl.py --check