SHARE
TWEET

Untitled

a guest Mar 3rd, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- flash_arch_image.sh.bak 2017-11-14 16:57:34.000000000 +0200
  2. +++ flash_arch_image.sh 2018-03-03 14:49:10.883353392 +0200
  3. @@ -35,10 +35,10 @@
  4.  }
  5.  
  6.  function find_devices {
  7. -    if [[ $2 == disk && $4 == *"usb"* ]]
  8. +    if [[ $2 == disk ]]
  9.      then
  10. -        printf "\n($index) $1 ($3): $5";
  11. -        devices[$index]=$1
  12. +        printf "\n($index) $1 ($3)";
  13. +        devices[$index]=/dev/$1
  14.          index=$(($index+1))
  15.      fi
  16.  }
  17. @@ -85,7 +85,7 @@
  18.      index=0
  19.      while read -r line;
  20.          do find_devices $line
  21. -    done < <(lsblk -p -l -o NAME,TYPE,VENDOR,SUBSYSTEMS,SIZE 2> /dev/null)
  22. +    done < <(lsblk -l -o NAME,TYPE,SIZE 2> /dev/null)
  23.  
  24.      # No devices were found!
  25.      if [[ index -eq 0 ]]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top