1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2024-09-19 14:05:02 +01:00
notnotdnethack/fuzzer_image/init.sh

12 lines
333 B
Bash
Executable file

#!/bin/sh
sysctl -w kernel.core_pattern=/tmp/cores/core-%e.%p.%h.%t
cd /app/dnh/notdnethackdir
/app/dnh/notdnethackdir/notdnethack -D -u `hostname` > /dev/null
sleep 10
CORES_DIR="/cores/notdnethack-$(git rev-parse HEAD)"
mkdir $CORES_DIR
cp /tmp/cores/* $CORES_DIR
if [ ! -d /cores/dnh ]
then
cp -r /app/dnh $CORES_DIR/dnh
fi