diff options
author | Mauro Santos | 2017-07-29 03:53:09 +0100 |
---|---|---|
committer | Mauro Santos | 2017-07-29 03:53:09 +0100 |
commit | d7aa8d4f3c463a0e4cb3e3c1d8c455e74f79a5ad (patch) | |
tree | 73c9495815d4c0fee43c2fecab8fb8748b1d0d57 /linuxpba-arch | |
parent | 7af0e2de853803b8fcd89c3ab93bf8c5f00b2fa3 (diff) | |
download | aur-d7aa8d4f3c463a0e4cb3e3c1d8c455e74f79a5ad.tar.gz |
Wait for one second and then use udevadm to wait until things settle.
This should result in more consistent results between the normal and
fallback images and reduce wait time before asking for a password.
Diffstat (limited to 'linuxpba-arch')
-rwxr-xr-x | linuxpba-arch | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/linuxpba-arch b/linuxpba-arch index e14d751962fc..67888412c8a2 100755 --- a/linuxpba-arch +++ b/linuxpba-arch @@ -12,6 +12,9 @@ SED_PASSWD="" echo "" +sleep 1 +udevadm settle -t 10 + if [[ -e "$KEYRING" ]] then @@ -19,6 +22,7 @@ then if [[ -e "/usr/bin/ykchalresp" && -e "/usr/bin/ykinfo" ]] then + udevadm settle -t 3 ykinfo -s &>/dev/null if [[ $? -eq 0 ]] then @@ -49,16 +53,6 @@ then fi fi - if [[ "x$SED_PASSWD" = "x" ]] - then - WAIT=6 - while [[ ! -b "$KFNAME" && "$WAIT" -gt 0 ]] - do - sleep 0.5 - let WAIT-=1 - done - fi - if [[ -e "$KFNAME" && "x$SED_PASSWD" = "x" ]] then echo -n "Unlocking keyring with keyfile ... " |