From a3444c686427e94e90b531da0a9effc025925f6f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Dec 2022 09:58:22 +0100 Subject: op-mode: T4767: drop sudo calls when working with QAT/acceleration subsystem As the API daemon has the proper permissions and also the CLI op-mode calls the script already with "sudo", there is no need to call "sudo" inside this script, again. --- op-mode-definitions/show-acceleration.xml.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'op-mode-definitions/show-acceleration.xml.in') diff --git a/op-mode-definitions/show-acceleration.xml.in b/op-mode-definitions/show-acceleration.xml.in index d0dcea2d6..6fd3babf5 100644 --- a/op-mode-definitions/show-acceleration.xml.in +++ b/op-mode-definitions/show-acceleration.xml.in @@ -29,13 +29,13 @@ Intel QAT flows - ${vyos_op_scripts_dir}/show_acceleration.py --flow --dev $6 + sudo ${vyos_op_scripts_dir}/show_acceleration.py --flow --dev $6 Intel QAT configuration - ${vyos_op_scripts_dir}/show_acceleration.py --conf --dev $6 + sudo ${vyos_op_scripts_dir}/show_acceleration.py --conf --dev $6 @@ -43,16 +43,16 @@ Intel QAT status - ${vyos_op_scripts_dir}/show_acceleration.py --status + sudo ${vyos_op_scripts_dir}/show_acceleration.py --status Intel QAT interrupts - ${vyos_op_scripts_dir}/show_acceleration.py --interrupts + sudo ${vyos_op_scripts_dir}/show_acceleration.py --interrupts - ${vyos_op_scripts_dir}/show_acceleration.py --hw + sudo ${vyos_op_scripts_dir}/show_acceleration.py --hw -- cgit v1.2.3