projects
/
pxelator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
we need to open ethernet tunnel as root, so check it
[pxelator]
/
lib
/
PXElator
/
ssh.pm
diff --git
a/lib/PXElator/ssh.pm
b/lib/PXElator/ssh.pm
index
0b67bd9
..
e611a0a
100644
(file)
--- a/
lib/PXElator/ssh.pm
+++ b/
lib/PXElator/ssh.pm
@@
-1,12
+1,15
@@
package ssh;
use Net::OpenSSH;
+use English;
my $id = 2;
sub ethernet_bridge_to {
my $host = shift;
+ die "you need to run this as root\n" unless $UID == 0;
+
warn "# reset local IP address";
system "ifconfig virtual 172.16.10.$id";