mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
run: create -F option to run base64 encoded command after busybox init
Fix ./run -h which was showing the build help instead.
This commit is contained in:
11
run
11
run
@@ -31,7 +31,7 @@ tmux_args=
|
||||
# just to prevent QEMU from emitting a warning that '' is not valid.
|
||||
trace_enable=pr_manager_run
|
||||
vnc=
|
||||
while getopts a:c:DdE:e:f:G:ghIiKkm:T:U:uVx OPT; do
|
||||
while getopts a:c:DdE:e:F:f:G:ghIiKkm:T:U:uVx OPT; do
|
||||
case "$OPT" in
|
||||
a)
|
||||
arch="$OPTARG"
|
||||
@@ -52,10 +52,13 @@ while getopts a:c:DdE:e:f:G:ghIiKkm:T:U:uVx OPT; do
|
||||
lkmc_eval="$OPTARG"
|
||||
;;
|
||||
e)
|
||||
extra_append="$extra_append $OPTARG"
|
||||
extra_append="${extra_append} ${OPTARG}"
|
||||
;;
|
||||
F)
|
||||
extra_append_after_dash="${extra_append_after_dash} lkmc_eval_base64=\"$(printf "${OPTARG}" | base64)\""
|
||||
;;
|
||||
f)
|
||||
extra_append_after_dash="$extra_append_after_dash $OPTARG"
|
||||
extra_append_after_dash="${extra_append_after_dash} ${OPTARG}"
|
||||
;;
|
||||
G)
|
||||
gem5opts="$OPTARG \\
|
||||
@@ -65,7 +68,7 @@ while getopts a:c:DdE:e:f:G:ghIiKkm:T:U:uVx OPT; do
|
||||
gem5=true
|
||||
;;
|
||||
h)
|
||||
cat build-usage.adoc 1>&2
|
||||
cat run-usage.adoc 1>&2
|
||||
exit
|
||||
;;
|
||||
I)
|
||||
|
||||
Reference in New Issue
Block a user