1#!/bin/sh 2set -e 3 4pkg install -y "$@" && exit 0 5 6cat <<EOF 7pkg install failed 8 9dmesg tail: 10$(dmesg | tail) 11 12trying again 13EOF 14 15pkg install -y "$@" 16