Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0423b12 authored by Bharath's avatar Bharath
Browse files

Merge branch '159-improve-FP3-installation' into 'master'

Add support for flashing in Windows as well

See merge request !2
parents e5f7ef13 f130ff4a
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -150,8 +150,21 @@ flash_image_ab_or_abort() {

# Operating system checks and variable definition
os_checks() {
  case "$(uname -s 2> /dev/null)" in
    Linux|GNU/Linux)
      echo "INFO: You are using a Linux distribution."
      FASTBOOT_BIN="${ROOT_DIR}/bin-linux-x86/fastboot"
      ;;
    msys|MINGW*)
      echo "INFO: You are using MinGW on Windows"
      FASTBOOT_BIN="${ROOT_DIR}/bin-msys/fastboot.exe"
      ;;
    *)
      echo "ERROR: Unsupported operating system (${OSTYPE})."
      echo "ERROR: Only GNU/Linux, and MinGW on Windows are currently supported."
      abort_now
      ;;
  esac
}


+15 −2
Original line number Diff line number Diff line
@@ -146,8 +146,21 @@ flash_image_ab_or_abort() {

# Operating system checks and variable definition
os_checks() {
  case "$(uname -s 2> /dev/null)" in
    Linux|GNU/Linux)
      echo "INFO: You are using a Linux distribution."
      FASTBOOT_BIN="${ROOT_DIR}/bin-linux-x86/fastboot"
      ;;
    msys|MINGW*)
      echo "INFO: You are using MinGW on Windows"
      FASTBOOT_BIN="${ROOT_DIR}/bin-msys/fastboot.exe"
      ;;
    *)
      echo "ERROR: Unsupported operating system (${OSTYPE})."
      echo "ERROR: Only GNU/Linux, and MinGW on Windows are currently supported."
      abort_now
      ;;
  esac
}

# Control the reboot sequence