Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/bootrr-generate-template
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ for driver_path in /sys/bus/*/drivers/* ; do

# Check for each instance of the driver
find "$driver_path" -type l | grep -v module$ | while read -r dev ; do
d=$(cd ${dev} ; pwd -P | sed s,.*/,,)
echo assert_device_present ${d}-probed \"${driver}\" ${d}
d="$(cd "${dev}" ; pwd -P | sed s,.*/,,)"
echo assert_device_present \"${d}-probed\" \"${driver}\" \"${d}\"
done

echo
Expand Down
3 changes: 1 addition & 2 deletions helpers/timeout
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ if [ $# -lt 2 ]; then
fi

attempts="$1"; shift
cmd="$@"

for i in `seq ${attempts}`
do
$cmd && exit 0
"$@" && exit 0
sleep 1
done

Expand Down