/[pxelator]/lib/PXElator/ssh.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/ssh.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 311 by dpavlin, Mon Aug 24 18:07:19 2009 UTC revision 312 by dpavlin, Thu Aug 27 18:57:46 2009 UTC
# Line 1  Line 1 
1  package ssh;  package ssh;
2    
3  use Net::OpenSSH;  use Net::OpenSSH;
4    use English;
5    
6  my $id = 2;  my $id = 2;
7    
8  sub ethernet_bridge_to {  sub ethernet_bridge_to {
9          my $host = shift;          my $host = shift;
10    
11            die "you need to run this as root\n" unless $UID == 0;
12    
13          warn "# reset local IP address";          warn "# reset local IP address";
14          system "ifconfig virtual 172.16.10.$id";          system "ifconfig virtual 172.16.10.$id";
15    

Legend:
Removed from v.311  
changed lines
  Added in v.312

  ViewVC Help
Powered by ViewVC 1.1.26