summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-30 19:29:08 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-30 19:29:08 +0200
commit196a4350e76e9e9cd8f214e5cc130017caf99ed6 (patch)
tree875d0aec625f02c1d6c3e84e37280efd4e6d820f /src/op_mode
parentc583b90dd5d21ed890ad3f8e71d0b5cf8d64b948 (diff)
downloadvyos-1x-196a4350e76e9e9cd8f214e5cc130017caf99ed6.tar.gz
vyos-1x-196a4350e76e9e9cd8f214e5cc130017caf99ed6.zip
qat: use script file shipped from Intel
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/show_acceleration.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/op_mode/show_acceleration.py b/src/op_mode/show_acceleration.py
index 6d44b0f66..752db3deb 100755
--- a/src/op_mode/show_acceleration.py
+++ b/src/op_mode/show_acceleration.py
@@ -39,16 +39,16 @@ def show_qat_status():
detect_qat_dev()
# Check QAT service
- if not os.path.exists('/etc/init.d/vyos-qat-utilities'):
+ if not os.path.exists('/etc/init.d/qat_service'):
print("\t QAT service not installed")
sys.exit(1)
# Show QAT service
- call('sudo /etc/init.d/vyos-qat-utilities status')
+ call('sudo /etc/init.d/qat_service status')
# Return QAT devices
def get_qat_devices():
- data_st, err = popen('sudo /etc/init.d/vyos-qat-utilities status', decode='utf-8')
+ data_st, err = popen('sudo /etc/init.d/qat_service status', decode='utf-8')
if not err:
elm_lst = re.findall('qat_dev\d', data_st)
print('\n'.join(elm_lst))
@@ -57,7 +57,7 @@ def get_qat_devices():
def get_qat_proc_path(qat_dev):
q_type = ""
q_bsf = ""
- output, err = popen('sudo /etc/init.d/vyos-qat-utilities status', decode='utf-8')
+ output, err = popen('sudo /etc/init.d/qat_service status', decode='utf-8')
if not err:
# Parse QAT service output
data_st = output.split("\n")