diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-14 15:17:58 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-14 15:17:58 +0200 |
commit | 9b694442bcc3afa5145c9d3aa731f1df223f3d4e (patch) | |
tree | 0289191ba279f02872ddca9f1f66d21eef66bec3 /bin | |
parent | 55f20fbef52f64fbff61cdae403670212259e1e3 (diff) |
p-p-r:bin:udev_resource -> udev_resource.py
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/graphics_env.sh | 2 | ||||
-rwxr-xr-x | bin/system_info.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/graphics_env.sh b/bin/graphics_env.sh index 19385a5..5160ae6 100755 --- a/bin/graphics_env.sh +++ b/bin/graphics_env.sh @@ -12,7 +12,7 @@ INDEX=$2 # We only want to set the DRI_PRIME env variable on systems with more than # 1 GPU running the amdgpu/radeon drivers. if [[ $DRIVER == "amdgpu" || $DRIVER == "radeon" ]]; then - NB_GPU=`udev_resource -l VIDEO | grep -oP -m1 '\d+'` + NB_GPU=`udev_resource.py -l VIDEO | grep -oP -m1 '\d+'` if [ $NB_GPU -gt 1 ]; then if [ $INDEX -gt 1 ]; then # See https://wiki.archlinux.org/index.php/PRIME diff --git a/bin/system_info.py b/bin/system_info.py index d03ae4a..95af6d4 100755 --- a/bin/system_info.py +++ b/bin/system_info.py @@ -224,7 +224,8 @@ def main(): 'Touchpad': 'TOUCHPAD' } for section, udev_category in extra_sections.items(): - section_info = _run_cmd('udev_resource -l {} -s'.format(udev_category)) + section_info = _run_cmd( + 'udev_resource.py -l {} -s'.format(udev_category)) if section_info: sys_info[section] = section_info.splitlines() print(json.dumps(sys_info, indent=4)) |