diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-02 17:35:11 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-02 17:41:22 +0100 |
commit | faabb3e0f5dd80fcce381f35be9064f52cceb5e3 (patch) | |
tree | 898c06cce89be83c9a9490cadef22d8d542ae240 /op-mode-definitions/show-version.xml | |
parent | 01e9674c2258503de31b0a03b258ef0bd9a1ea35 (diff) | |
download | vyos-1x-faabb3e0f5dd80fcce381f35be9064f52cceb5e3.tar.gz vyos-1x-faabb3e0f5dd80fcce381f35be9064f52cceb5e3.zip |
Revert "op-mode: T2558: version: no need to call this with sudo"
This reverts commit f506ba43d44a4218e44b350721de1c890e62998a.
Calling this with sudo is required else some sysfs files can not be read!
vyos@vyos:~$ cat /sys/class/dmi/id/product_serial
cat: /sys/class/dmi/id/product_serial: Permission denied
vyos@vyos:~$ sudo cat /sys/class/dmi/id/product_serial
VMware-42 3f 67 73 77 df c4 80-42 c9 42 af ff 15 de 0b
Diffstat (limited to 'op-mode-definitions/show-version.xml')
-rw-r--r-- | op-mode-definitions/show-version.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/show-version.xml b/op-mode-definitions/show-version.xml index 905a4865c..caa5bcda7 100644 --- a/op-mode-definitions/show-version.xml +++ b/op-mode-definitions/show-version.xml @@ -6,13 +6,13 @@ <properties> <help>Show system version information</help> </properties> - <command>${vyos_op_scripts_dir}/show_version.py</command> + <command>sudo ${vyos_op_scripts_dir}/show_version.py</command> <children> <leafNode name="funny"> <properties> <help>Show system version and some fun stuff</help> </properties> - <command>${vyos_op_scripts_dir}/show_version.py --funny</command> + <command>sudo ${vyos_op_scripts_dir}/show_version.py --funny</command> </leafNode> <leafNode name="all"> <properties> |