From faabb3e0f5dd80fcce381f35be9064f52cceb5e3 Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Sat, 2 Jan 2021 17:35:11 +0100
Subject: 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
---
 op-mode-definitions/show-version.xml | 4 ++--
 1 file 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>
-- 
cgit v1.2.3