diff --git a/host/bin/switch_to_hackrf b/host/bin/switch_to_hackrf index 37f3ca03edde622178c3568a292d601b77f72dad..511270e9055cf1bb68da3c5fda9cbfb33dd759b1 100755 --- a/host/bin/switch_to_hackrf +++ b/host/bin/switch_to_hackrf @@ -17,12 +17,12 @@ if [ -n "${ram_firmware}" ]; then printf "\nFound firmware: ${ram_firmware}\n" printf "Flashing...\n" else - printf "Unable to fine firmware to flash, please have hackrf_one_usb.dfu\n" + printf "Unable to find firmware to flash, please have hackrf_one_usb.dfu\n" printf "in current directory or /usr/share/hackrf/\n" exit 1 fi -for i in /usr/share/hackrf/hackrf_one_usb.bin /usr/share/hackrf/hckrf_one_usb_rom_to_ram.bin hackrf_one_usb.bin; do +for i in /usr/share/hackrf/hackrf_one_usb.bin /usr/share/hackrf/hackrf_one_usb_rom_to_ram.bin hackrf_one_usb.bin; do if [ -r "${i}" ]; then rom_firmware="${i}" break @@ -33,7 +33,7 @@ if [ -n "${rom_firmware}" ]; then printf "\nFound firmware: ${rom_firmware}\n" printf "Flashing...\n" else - printf "Unable to fine firmware to flash, please have hackrf_one_usb.bin\n" + printf "Unable to find firmware to flash, please have hackrf_one_usb.bin\n" printf "in current directory or /usr/share/hackrf/\n" exit 1 fi diff --git a/host/bin/switch_to_portapack b/host/bin/switch_to_portapack index f7c4372dd9df399a9e7c13b0ed1c8574f56f9456..817283670ca52d10c741147b6fd870855c467489 100755 --- a/host/bin/switch_to_portapack +++ b/host/bin/switch_to_portapack @@ -17,7 +17,7 @@ if [ -n "${ram_firmware}" ]; then printf "\nFound firmware: ${ram_firmware}\n" printf "Flashing...\n" else - printf "Unable to fine firmware to flash, please have hackrf_one_usb.dfu\n" + printf "Unable to find firmware to flash, please have hackrf_one_usb.dfu\n" printf "in current directory or /usr/share/hackrf/\n" exit 1 fi @@ -33,7 +33,7 @@ if [ -n "${rom_firmware}" ]; then printf "\nFound firmware: ${rom_firmware}\n" printf "Flashing...\n" else - printf "Unable to fine firmware to flash, please have portapack-h1-firmware.bin\n" + printf "Unable to find firmware to flash, please have portapack-h1-firmware.bin\n" printf "in current directory or /usr/share/hackrf/\n" exit 1 fi