mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
Don't pass all arguments explicitly, just use existing vars. Prefix all common_setup inputs and outputs with common_ to avoid name conflicts.
20 lines
376 B
Bash
Executable File
20 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common"
|
|
common_gem5=true
|
|
while getopts M:n: OPT; do
|
|
case "$OPT" in
|
|
M)
|
|
common_gem5_variant="$OPTARG"
|
|
;;
|
|
n)
|
|
common_run_id="$OPTARG"
|
|
;;
|
|
?)
|
|
exit 2
|
|
;;
|
|
esac
|
|
done
|
|
shift "$(($OPTIND - 1))"
|
|
common_setup
|
|
"${common_gem5_m5term}" localhost "$common_gem5_telnet_port"
|