astribank_hook: remove useless 'time'

* 'time' was added here for debugging and never actually needed.
* It actually causes a minor bashism issue.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
Tzafrir Cohen 2014-12-07 11:51:19 +02:00
parent 631d32680f
commit 283f01bd67

View File

@ -96,10 +96,10 @@ wait_for_udev() {
echo "Waiting for udev to settle down..." echo "Waiting for udev to settle down..."
if [ -x /sbin/udevsettle ]; then if [ -x /sbin/udevsettle ]; then
# Old system, stand-alone udevsettle command # Old system, stand-alone udevsettle command
time /sbin/udevsettle --timeout="$UDEV_SETTLE_MAX_TIME" /sbin/udevsettle --timeout="$UDEV_SETTLE_MAX_TIME"
elif [ -x /sbin/udevadm ]; then elif [ -x /sbin/udevadm ]; then
# Assume modern system, udevadm has settle parameter # Assume modern system, udevadm has settle parameter
if ! time /sbin/udevadm settle --timeout="$UDEV_SETTLE_MAX_TIME" if ! /sbin/udevadm settle --timeout="$UDEV_SETTLE_MAX_TIME"
then then
echo "udevadm failed ($?)." echo "udevadm failed ($?)."
echo "Fallback to sleep $UDEV_SETTLE_MAX_TIME seconds." echo "Fallback to sleep $UDEV_SETTLE_MAX_TIME seconds."