Guest User

Untitled

a guest
Jun 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. # we wait up to 15 seconds (+/- a few) for usb-storage to settle down
  2. for loop in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
  3.     device=$(find_backing_device)
  4.     [ -n "$device" ] && break
  5.     sleep 1
  6. done
  7. [ -z "$device" ] && exit 0
Add Comment
Please, Sign In to add comment