summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLassulus <Lassulus@googlemail.com>2011-05-11 19:29:01 +0200
committerLassulus <Lassulus@googlemail.com>2011-05-11 19:29:01 +0200
commit330d3a939b8aab14e114740d6b57e5fcab0b8721 (patch)
treee70113c9e075059921a075107260512f848da88f
parent43bb63cee1b6e22f443c9f42791b9b5144e2e6a5 (diff)
optional path now as $1
-rwxr-xr-xhosts/.scripts/sanitize.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/hosts/.scripts/sanitize.sh b/hosts/.scripts/sanitize.sh
index 4ce6ff51..88591b67 100755
--- a/hosts/.scripts/sanitize.sh
+++ b/hosts/.scripts/sanitize.sh
@@ -7,6 +7,7 @@ sudo pkill -USR2 tincd
sudo sed -n '/tinc.retiolum/{s/.*tinc.retiolum\[[0-9]*\]: //gp}' $LOG_FILE |\
./parse.py > retiolum.dot
-$GRAPH_SETTER1 -Tpng -o retiolum_1.png retiolum.dot
-$GRAPH_SETTER2 -Tpng -o retiolum_2.png retiolum.dot
+$GRAPH_SETTER1 -Tpng -o $1retiolum_1.png retiolum.dot
+$GRAPH_SETTER2 -Tpng -o $1retiolum_2.png retiolum.dot
$OPENER retiolum_1.png &>/dev/null
+rm retiolum.dot