File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ manage-tools -s install gdb
140
140
# install pwntools, but don't let it sudo install dependencies
141
141
manage-tools install pwntools
142
142
143
+ # install qemu, but use "nice" to avoid degrading performance during compilation
144
+ manage-tools -n install qemu
145
+
143
146
# uninstall gdb
144
147
manage-tools uninstall gdb
145
148
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Usage: $(basename $0) [-sv] (list|setup|install|uninstall|bin|search) tool
12
12
13
13
Where:
14
14
-s allow running things with sudo (i.e., to install debs)
15
+ -n "nice" the installer to reduce background load
15
16
-v verbose mode. print log while installing
16
17
-f force certain actions (such as installing over an installed tool)
17
18
tool the name of the tool. if "all", does the action on all (installed) tools
247
248
-s)
248
249
export ALLOW_SUDO=1
249
250
;;
251
+ -n)
252
+ export NICE_LEVEL=10
253
+ ;;
250
254
-f)
251
255
export FORCE=1
252
256
;;
264
268
[[ -z ${ALLOW_SUDO+x} ]] && export ALLOW_SUDO=0
265
269
[[ -z ${FORCE+x} ]] && export FORCE=0
266
270
[[ -z ${VERBOSE_OUTPUT+x} ]] && export VERBOSE_OUTPUT=0
271
+ [[ -z ${NICE_LEVEL+x} ]] && export NICE_LEVEL=0
267
272
export EXPECTFAIL=${EXPECTFAIL:- 0}
268
273
269
274
if [[ $# -ge 1 ]]; then
@@ -398,9 +403,9 @@ case $ACTION in
398
403
# execute install script
399
404
set +e
400
405
if [ " $VERBOSE_OUTPUT " -eq 1 ]; then
401
- DISTRI=$DISTRI PATH=$CTF_TOOLS_ROOT /bin/:$PATH ./install 2>&1 | tee -a install.log
406
+ DISTRI=$DISTRI PATH=$CTF_TOOLS_ROOT /bin/:$PATH nice -n $NICE_LEVEL ./install 2>&1 | tee -a install.log
402
407
else
403
- DISTRI=$DISTRI PATH=$CTF_TOOLS_ROOT /bin/:$PATH ./install >> install.log 2>&1
408
+ DISTRI=$DISTRI PATH=$CTF_TOOLS_ROOT /bin/:$PATH nice -n $NICE_LEVEL ./install >> install.log 2>&1
404
409
fi
405
410
INSTALL_FAILED=$?
406
411
set -e
You can’t perform that action at this time.
0 commit comments