mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 01:55:19 +01:00
77013d11e6
Sponsored by: The FreeBSD Foundation
23 lines
326 B
Bash
23 lines
326 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
start_time=$(date +%s)
|
|
pkg install -y "$@" && exit 0
|
|
|
|
cat <<EOF
|
|
pkg install failed after $(($(date +%s) - $start_time))s
|
|
|
|
dmesg tail:
|
|
$(dmesg | tail)
|
|
|
|
trying again
|
|
EOF
|
|
|
|
start_time=$(date +%s)
|
|
pkg install -y "$@" && exit 0
|
|
|
|
cat <<EOF
|
|
second pkg install failed after $(($(date +%s) - $start_time))s
|
|
EOF
|
|
exit 1
|