summaryrefslogtreecommitdiff
path: root/src/op_mode/show_acceleration.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-04 13:20:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-09-04 13:20:27 +0200
commitbcdda6aaabe955ca3c21fa9917f1b41d7156eebb (patch)
tree37009aec1c158ca1dd6e23ac70d1650839b41458 /src/op_mode/show_acceleration.py
parent5b60728992b8990bd3e2e60feae35b6e07c30ada (diff)
downloadvyos-1x-bcdda6aaabe955ca3c21fa9917f1b41d7156eebb.tar.gz
vyos-1x-bcdda6aaabe955ca3c21fa9917f1b41d7156eebb.zip
qat: T2853: fix "show system acceleration qat status" command
Intel script sytax had changed.
Diffstat (limited to 'src/op_mode/show_acceleration.py')
-rwxr-xr-xsrc/op_mode/show_acceleration.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/op_mode/show_acceleration.py b/src/op_mode/show_acceleration.py
index 1e020cea4..9f10ee8e5 100755
--- a/src/op_mode/show_acceleration.py
+++ b/src/op_mode/show_acceleration.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2019 VyOS maintainers and contributors
+# Copyright (C) 2019-2020 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -13,7 +13,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
import sys
import os
@@ -44,7 +43,7 @@ def show_qat_status():
sys.exit(1)
# Show QAT service
- os.system('sudo ' + qat_init_script)
+ os.system('sudo {} status'.format(qat_init_script))
# Return QAT devices
def get_qat_devices():
@@ -118,3 +117,4 @@ elif args.dev_list:
else:
parser.print_help()
sys.exit(1)
+