Skip to content

Commit

Permalink
Remove key selection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jigs4wkiller committed Nov 17, 2021
1 parent 2d79490 commit 23fd32d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/addon/Volume-Key-Selector/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ chmod -R 0755 $MODPATH/common/addon/Volume-Key-Selector/tools
chooseport() {
# Keycheck binary by someone755 @Github, idea for code below by Zappo @xda-developers
# Calling it first time detects previous input. Calling it second time will do what we want
[ "$1" ] && local delay=$1 || local delay=5
[ "$1" ] && local delay=$1 || local delay=30
local error=false
while true; do
timeout 0 $MODPATH/common/addon/Volume-Key-Selector/tools/$ARCH32/keycheck
Expand All @@ -17,10 +17,10 @@ chooseport() {
return 1
else
$error && abort "Volume key error!"
error=true
error=false
echo "Volume key not detected. Try again"
fi
done
}
# Keep old variable from previous versions of this
VKSEL=chooseport
VKSEL=chooseport

0 comments on commit 23fd32d

Please sign in to comment.