mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
13 lines
364 B
Bash
Executable File
13 lines
364 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# https://github.com/cirosantilli/linux-kernel-module-cheat#bisection
|
|
set -eu
|
|
./build-linux --clean "$@"
|
|
./build-linux "$@"
|
|
set +e
|
|
./run --quit-after-boot "$@" || status=$?
|
|
# https://stackoverflow.com/questions/4713088/how-to-use-git-bisect/22592593#22592593
|
|
if [ "$status" -eq 125 ] || [ "$status" -gt 127 ]; then
|
|
status=1
|
|
fi
|
|
exit "$status"
|