Skip to content

Commit fe74512

Browse files
committed
Check adbd dependency before running
1 parent e454d9d commit fe74512

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/radxa-otgutils

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ stop()
9696
MODE=
9797
case "$(basename "$0")" in
9898
radxa-adbd)
99+
if [[ ! -e /usr/bin/adbd ]]
100+
then
101+
echo "Did not find adbd. Please check if related packages are installed."
102+
exit 1
103+
fi
99104
MODE=adbd
100105
;;
101106
radxa-usbnet)

0 commit comments

Comments
 (0)