From efeb4d190aa40f72ffcf0b73ef8f19e4043b8592 Mon Sep 17 00:00:00 2001
From: Erwin Ried <1091420+eried@users.noreply.github.com>
Date: Fri, 24 Apr 2020 10:08:19 +0200
Subject: [PATCH] Cleaning more old files

---
 host/bin/switch_to_hackrf    | 43 ------------------------------------
 host/bin/switch_to_portapack | 43 ------------------------------------
 2 files changed, 86 deletions(-)
 delete mode 100755 host/bin/switch_to_hackrf
 delete mode 100755 host/bin/switch_to_portapack

diff --git a/host/bin/switch_to_hackrf b/host/bin/switch_to_hackrf
deleted file mode 100755
index 511270e9..00000000
--- a/host/bin/switch_to_hackrf
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n"
-printf "then plug the HackRF into a USB port on your computer.\n\n"
-printf "After the HackRF is plugged in, you may release the DFU button.\n"
-printf "Press any key to continue or ^c to abort\n"
-read
-
-for i in /usr/share/hackrf/hackrf_one_usb.dfu /usr/share/hackrf/hackrf_one_usb_ram.dfu hackrf_one_usb.dfu; do
-  if [ -r "${i}" ]; then
-    ram_firmware="${i}"
-    break
-  fi
-done
-
-if [ -n "${ram_firmware}" ]; then
-  printf "\nFound firmware: ${ram_firmware}\n"
-  printf "Flashing...\n"
-else
-  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/hackrf_one_usb_rom_to_ram.bin hackrf_one_usb.bin; do
-  if [ -r "${i}" ]; then
-    rom_firmware="${i}"
-    break
-  fi
-done
-
-if [ -n "${rom_firmware}" ]; then
-  printf "\nFound firmware: ${rom_firmware}\n"
-  printf "Flashing...\n"
-else
-  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
-
-dfu-util --device 1fc9:000c --download "${ram_firmware}" --reset
-sleep 2s
-hackrf_spiflash -w "${rom_firmware}"
diff --git a/host/bin/switch_to_portapack b/host/bin/switch_to_portapack
deleted file mode 100755
index 81728367..00000000
--- a/host/bin/switch_to_portapack
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n"
-printf "then plug the HackRF into a USB port on your computer.\n\n"
-printf "After the HackRF is plugged in, you may release the DFU button.\n"
-printf "Press any key to continue or ^c to abort\n"
-read
-
-for i in /usr/share/hackrf/hackrf_one_usb.dfu /usr/share/hackrf/hackrf_one_usb_ram.dfu hackrf_one_usb.dfu; do
-  if [ -r "${i}" ]; then
-    ram_firmware="${i}"
-    break
-  fi
-done
-
-if [ -n "${ram_firmware}" ]; then
-  printf "\nFound firmware: ${ram_firmware}\n"
-  printf "Flashing...\n"
-else
-  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/portapack-h1-firmware.bin portapack-h1-firmware.bin; do
-  if [ -r "${i}" ]; then
-    rom_firmware="${i}"
-    break
-  fi
-done
-
-if [ -n "${rom_firmware}" ]; then
-  printf "\nFound firmware: ${rom_firmware}\n"
-  printf "Flashing...\n"
-else
-  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
-
-dfu-util --device 1fc9:000c --download "${ram_firmware}" --reset
-sleep 2s
-hackrf_spiflash -w "${rom_firmware}"
-- 
GitLab