Commit 4448767d authored by Jack Lange's avatar Jack Lange

allow setting debug flag in configuration file

parent 3a503fd8
LEVIATHAN_DEBUG_ENABLE=1
LEVIATHAN_PATH=$PWD
PETLIB_PATH=$LEVIATHAN_PATH/petlib
PISCES_PATH=$LEVIATHAN_PATH/pisces
......
#!/bin/bash
if [ $LEVIATHAN_DEBUG_ENABLE ]; then
echo "Leviathan debug mode enabled"
echo 8 > /proc/sys/kernel/printk
echo 3 > /proc/sys/vm/drop_caches
fi
# boilerplate junk
IFS=
......@@ -29,6 +24,13 @@ for cfg in `grep -v '^#' < ./setup.cfg | grep -e '^$' -v`; do
done
IFS=" "
if [ $LEVIATHAN_DEBUG_ENABLE ]; then
echo "Leviathan debug mode enabled"
echo 8 > /proc/sys/kernel/printk
echo 3 > /proc/sys/vm/drop_caches
fi
echo "Inserting Petos Module."
insmod $PETLIB_PATH/petos/petos.ko
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment