Changeset 3897 in genesis for tools


Ignore:
Timestamp:
Feb 23, 2005, 1:23:40 PM (20 years ago)
Author:
rick
Message:

Hack gemaakt die ervoor zorgt dat ip aan de localhost wordt gekoppeld op
het moment dat ie niet aan een interface wordt gekoppeld

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/wleiden.pl

    r3804 r3897  
    2222
    2323if ($functions_only) {goto functions;}
    24 chomp($source = `pwd`);
     24$source='/etc/wl/wleiden.pl';
    2525
    2626do($config) || die;
     
    793793EOM
    794794
     795$master_ip_on_alias="ifconfig_lo0_alias0=\"inet $master_ip/32\"";
     796foreach my $if (keys %config) {
     797  if( $IP{$if} =~ /([0-9\.]+).*/ ) {
     798    if( $1 eq $master_ip ) {
     799      $master_ip_on_alias="#ifconfig_lo0_alias0=\"inet $master_ip/32\"";
     800      break;
     801    };
     802  };
     803};
     804
     805
    795806$rcconf.=sprintf <<EORC1;
    796807# This file is read by /etc/rc.conf - and specific to wireless
     
    807818location="$location"
    808819
    809 #ifconfig_lo0_alias0="inet $master_ip/32"
     820$master_ip_on_alias
    810821ifconfig_lo0_alias0="inet 172.31.255.1/32"
    811822EORC1
Note: See TracChangeset for help on using the changeset viewer.