Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. sudo wminput -r -w -c "$controls_config" > "$temp_output" &
  2. exec 3< "$temp_output"
  3.  
  4. while true; do
  5. sleep 1
  6. read <&3 output
  7. if [[ "$output" = 'Ready' ]]; then
  8. echo "Controller $wiimote_counter Connected"
  9. break
  10. fi
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement