Skip to content

Commit 169118c

Browse files
committed
skip devices that failed to get name by lsusb
1 parent 0ea6948 commit 169118c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

chromeos-base/fydeos-firmware-update/files/scripts/lib/camera.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ list_upgradable_camera_devices() {
102102
for id in "${SUPPORTED_CAMERA_DEVICE_IDS[@]}"; do
103103
if result=$(_local_check_for_update "$id" 2> /dev/null); then
104104
name=$(get_device_name "$id")
105-
combine_print_id_name_and_detail "$id" "$name" "$result"
105+
if [[ -n "$name" ]]; then
106+
combine_print_id_name_and_detail "$id" "$name" "$result"
107+
fi
106108
fi
107109
done
108110
}

chromeos-base/fydeos-firmware-update/files/scripts/lib/common.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ get_device_name() {
9393
local id="$1"
9494
local name=""
9595
name=$(lsusb -d "$id" | cut -d' ' -f7- || echo "")
96-
if [[ -z "$name" ]]; then
97-
name="$id"
98-
fi
96+
# if [[ -z "$name" ]]; then
97+
# name="$id"
98+
# fi
9999
echo "$name"
100100
}
101101

chromeos-base/fydeos-firmware-update/fydeos-firmware-update-0.0.1-r1.ebuild renamed to chromeos-base/fydeos-firmware-update/fydeos-firmware-update-0.0.1-r2.ebuild

File renamed without changes.

0 commit comments

Comments
 (0)