diff options
author | maximilian attems <maks@debian.org> | 2008-07-05 00:29:46 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2008-07-05 00:29:46 +0200 |
commit | b12197b4d9f01575b897e7a3b653363d926927b8 (patch) | |
tree | 87c50c32e736e5dcd76ca3e70c6644dc7c375634 /scripts/functions | |
parent | 501e5d0dafeb5bc204585848f551b26287e40654 (diff) | |
download | initramfs-tools-b12197b4d9f01575b897e7a3b653363d926927b8.tar.gz initramfs-tools-b12197b4d9f01575b897e7a3b653363d926927b8.zip |
wait_for_udev(): simplify, no need for logging.
add small comment on top, what for we need it.
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/functions b/scripts/functions index 558f521..c29a314 100644 --- a/scripts/functions +++ b/scripts/functions @@ -314,11 +314,9 @@ configure_networking() fi } +# Wait for queued kernel/udev events wait_for_udev() { - if [ -x "$(command -v udevsettle)" ]; then - [ "$quiet" != "y" ] && log_begin_msg "Waiting for udev to process events" - udevsettle ${1:+--timeout=$1} - [ "$quiet" != "y" ] && log_end_msg - fi + [ -x "$(command -v udevsettle)" ] && return 0 + udevsettle ${1:+--timeout=$1} } |