mcreboot: support for CPU cores (-c) and memory (-m) arguments
This commit is contained in:
@@ -13,15 +13,18 @@
|
|||||||
# Note that the script does not output anything unless an error occurs.
|
# Note that the script does not output anything unless an error occurs.
|
||||||
|
|
||||||
prefix="@prefix@"
|
prefix="@prefix@"
|
||||||
BINDIR="@BINDIR@"
|
BINDIR="${prefix}/bin"
|
||||||
SBINDIR="@SBINDIR@"
|
SBINDIR="${prefix}/sbin"
|
||||||
KMODDIR="@KMODDIR@"
|
KMODDIR="${prefix}/kmod"
|
||||||
KERNDIR="@KERNDIR@"
|
KERNDIR="${prefix}/@TARGET@/kernel"
|
||||||
ENABLE_MCOVERLAYFS="@ENABLE_MCOVERLAYFS@"
|
ENABLE_MCOVERLAYFS="@ENABLE_MCOVERLAYFS@"
|
||||||
|
|
||||||
|
mem="512M@0"
|
||||||
|
cpus=""
|
||||||
|
|
||||||
INTERVAL=1
|
INTERVAL=1
|
||||||
LOGMODE=0
|
LOGMODE=0
|
||||||
while getopts :i:k: OPT
|
while getopts :i:k:c:m: OPT
|
||||||
do
|
do
|
||||||
case ${OPT} in
|
case ${OPT} in
|
||||||
i) INTERVAL=${OPTARG}
|
i) INTERVAL=${OPTARG}
|
||||||
@@ -50,13 +53,15 @@ do
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
c) cpus=${OPTARG}
|
||||||
|
;;
|
||||||
|
m) mem=${OPTARG}
|
||||||
|
;;
|
||||||
*) echo "invalid option -${OPT}"
|
*) echo "invalid option -${OPT}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
mem="512M@0"
|
|
||||||
cpus=""
|
|
||||||
ihk_ikc_irq_core=0
|
ihk_ikc_irq_core=0
|
||||||
|
|
||||||
release=`uname -r`
|
release=`uname -r`
|
||||||
|
|||||||
Reference in New Issue
Block a user