From: Dobrica Pavlinusic Date: Thu, 27 Aug 2009 18:57:46 +0000 (+0000) Subject: we need to open ethernet tunnel as root, so check it X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=0a5e138bbef34fd449dccdbd6d462c474eb7b72c;p=pxelator we need to open ethernet tunnel as root, so check it --- diff --git a/lib/PXElator/ssh.pm b/lib/PXElator/ssh.pm index 0b67bd9..e611a0a 100644 --- 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";