diff options
author | Anthony Nandaa <[email protected]> | 2024-07-02 10:22:50 +0000 |
---|---|---|
committer | Wei Liu <[email protected]> | 2024-08-03 00:01:55 +0000 |
commit | c6e2b45a544b45ce1a26858ded61a0dc4896d54a (patch) | |
tree | 2a69f37aa3165555f611fd9f7c5e515e5cf8caba /lib/netdev-notifier-error-inject.c | |
parent | 8fcc514809de41153b43ccbe1a0cdf7f72b78e7e (diff) |
tools: hv: lsvmbus: change shebang to use python3
In many modern Linux distros, running `lsvmbus` returns the error:
```
/usr/bin/env: 'python': No such file or directory
```
because 'python' doesn't point anywhere.
Now that python2 has reached EOL as of January 1, 2020 and is no longer
maintained[1], these distros have python3 instead.
Also, the script isn't executable by default because the permissions are
set to mode 644.
Fix this by updating the shebang in the `lsvmbus` to use python3 instead
of python. Also fix the permissions to be 755 so that is executable by
default, which matches other similar scripts in `tools/hv`.
The script is also tested and verified that is compatible with
python3.
[1] https://www.python.org/doc/sunset-python-2/
Signed-off-by: Anthony Nandaa <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions