aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoachim Tingvold <joachim@tingvold.com>2015-04-16 21:10:37 +0200
committerJoachim Tingvold <joachim@tingvold.com>2015-04-16 21:10:37 +0200
commit7147d88f6e3c15a2cce29fc39484280964ac81bc (patch)
treecaefcba543049bb263335601b47116e52d685434 /tools
parentcf10d6ed33446032a86c9d58b964c5fbda121550 (diff)
parent7337ac7e744e978ae93a9cd28a08fea728627287 (diff)
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-dummy-placement.sh (renamed from tools/make_dummy_placement.sh)3
-rwxr-xr-xtools/make-switches.pl1
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/make_dummy_placement.sh b/tools/make-dummy-placement.sh
index 8a2a831..192e3d3 100755
--- a/tools/make_dummy_placement.sh
+++ b/tools/make-dummy-placement.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+# Generate a random placement-entry insert for a named switch (convenient
+# if you manually add a switch with no placement)
+
for a in $* ; do
X=$(( $RANDOM % 500 ))
Y=$(( $RANDOM % 500 ))
diff --git a/tools/make-switches.pl b/tools/make-switches.pl
index beb4343..c0c842a 100755
--- a/tools/make-switches.pl
+++ b/tools/make-switches.pl
@@ -1,4 +1,5 @@
#! /usr/bin/perl
+
use strict;
use warnings;