diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2015-04-16 21:10:37 +0200 |
---|---|---|
committer | Joachim Tingvold <joachim@tingvold.com> | 2015-04-16 21:10:37 +0200 |
commit | 7147d88f6e3c15a2cce29fc39484280964ac81bc (patch) | |
tree | caefcba543049bb263335601b47116e52d685434 /tools | |
parent | cf10d6ed33446032a86c9d58b964c5fbda121550 (diff) | |
parent | 7337ac7e744e978ae93a9cd28a08fea728627287 (diff) |
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make-dummy-placement.sh (renamed from tools/make_dummy_placement.sh) | 3 | ||||
-rwxr-xr-x | tools/make-switches.pl | 1 |
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; |