From bcdda6aaabe955ca3c21fa9917f1b41d7156eebb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 4 Sep 2020 13:20:27 +0200 Subject: qat: T2853: fix "show system acceleration qat status" command Intel script sytax had changed. --- src/op_mode/show_acceleration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/op_mode/show_acceleration.py') 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 . -# 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) + -- cgit v1.2.3