Skip to content

Commit

Permalink
Verify installation only -U, include lsusb output (ayufan-rock64#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kaiser authored and ayufan committed Sep 12, 2017
1 parent c4c7424 commit 48652b3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions package/root/usr/local/sbin/rock64_diagnostics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ GenerateLog() {
echo -e "\n### ifconfig:\n"
ifconfig

echo -e "### partitions:\n"
echo -e "### lsusb:\n"
lsusb 2>/dev/null ; echo "" ; lsusb -t 2>/dev/null

echo -e "\n### partitions:\n"
cat /proc/partitions

echo -e "\n### df:\n"
Expand Down Expand Up @@ -318,8 +321,7 @@ UploadSupportLogs() {

echo -e "Generating diagnostic logs... "
GenerateLog > ${Log}
echo -e "Running file integrity checks... "
VerifyFiles >> ${Log}
[[ -n ${VERIFY} ]] && (echo -e "Running file integrity checks... " ; VerifyFiles >> ${Log})

#check network connection
fping sprunge.us | grep -q alive || \
Expand Down Expand Up @@ -397,13 +399,21 @@ ParseOptions() {
exit 0
;;

u|U)
u)
# upload generated logs for support
RequireRoot
UploadSupportLogs
exit 0
;;

U)
# verify files and upload generated logs for support
RequireRoot
export VERIFY=TRUE
UploadSupportLogs
exit 0
;;

c|C)
# check card mode
CheckCard "${OPTARG}"
Expand Down

0 comments on commit 48652b3

Please sign in to comment.