mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
selftests: net: More graceful finding of `ip'.
The ip tool might be provided by another package (such as Busybox), not necessarily implementing the -Version switch. Trying an actual usage (`ip link show') might be a better test that would work with all implementations of `ip'. Signed-off-by: Daniel Díaz <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
This commit is contained in:
parent
2bd6bf03f4
commit
64cfcaed7b
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ if [ "$(id -u)" -ne 0 ];then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
ip -Version 2>/dev/null >/dev/null
|
||||
ip link show 2>/dev/null >/dev/null
|
||||
if [ $? -ne 0 ];then
|
||||
echo "SKIP: Could not run test without the ip tool"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue