Skip to content

Commit

Permalink
Fixed mtpmount.sh: hanwen/go-mtpfs#160
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-yadav11 committed Sep 9, 2022
1 parent 15948df commit 1c7bc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mtpmount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mount() {
serial="${device#* (}"; serial="${serial%)}"
mtpoint="$XDG_RUNTIME_DIR/mtp/${device%%|*}"
mkdir -p "$mtpoint"
setsid -f go-mtpfs -dev "$serial" "$mtpoint" &>"$mtpoint.log"
setsid -f go-mtpfs -usb-timeout 10000 -dev "$serial" "$mtpoint" &>"$mtpoint.log"
sleep 0.1
timeout="$(( SECONDS + 2 ))"
while (( SECONDS < timeout )) ; do
Expand Down

0 comments on commit 1c7bc0a

Please sign in to comment.