mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-09 16:00:27 +00:00
Add an option to run mappers inside gdb
This commit is contained in:
parent
6464d3dd0c
commit
1ed805a7e6
@ -22,5 +22,9 @@ do
|
||||
# Disable tun interface
|
||||
sed -i 's/"type": "TUNInterface"/\/\/"type": "TUNInterface"/g' $file
|
||||
|
||||
if [[ $* == *-d* ]]; then
|
||||
gdb $cjdns_path/cjdroute -ex 'set follow-fork-mode child' -ex 'run < '"${file}" -ex 'thread apply all bt' -ex 'quit' 2>&1 | tee gdb-$i.log &
|
||||
else
|
||||
$cjdns_path/cjdroute < $file
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user