Changeset 4981 in genesis for tools


Ignore:
Timestamp:
Nov 2, 2005, 12:31:31 AM (19 years ago)
Author:
rick
Message:

Adding rc.local back in

Location:
tools/FreeBSD5_x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/FreeBSD5_x/genesis.conf

    r4317 r4981  
    22#
    33# Variable file
     4
     5$NG = 0;
    46
    57#debugging variable
     
    1214@filelist = ();
    1315$filelist[0]="dhcpd.conf";
     16$filelist[1]="rc.local"; # Always include (as to overwrite existing file)
    1417$filelist[2]="rc.node.local";
    1518$filelist[3]="resolv.conf";
  • tools/FreeBSD5_x/wleiden.pl

    r4939 r4981  
    209209        $output .= "ifconfig_$if=\"inet $IP{$interface}";
    210210        $output .= " $CARD_OPTION{$interface}";
    211         if( $TYPE{$if} =~ /wireless/i ) {
     211        if ($TYPE{$if} =~ /wireless/i) {
     212          $output .= "\"\t# rc.local: " unless $NG;
    212213          $output .= " ssid $ESSID{$interface}";
    213214          if( $MODE{$if}=~/master/i ) {
     
    339340};
    340341
     342
     343sub rc_local {
     344  my $output = genHeader("#");
     345  if ($NG) {
     346        $output .= "# Replaced by ssid et.al. info in rc.node.local\n";
     347        $output .= "exit 0";
     348        return $output;
     349  }
     350  foreach my $if (sort keys %config) {
     351    if( ($if =~ /^wi[0-9]$/i) and ($TYPE{$if} =~ /wireless/i) ) {
     352      $output .=
     353      "$wicontrol -i $if -s $SDESC{$if}    # Nickname\n" .
     354      "#$wicontrol -i $if -t 7             # TXrate\n" .
     355      "$wicontrol -i $if -P 0              # PowerSave\n" .
     356      "$wicontrol -i $if -Z                # Zero SNR cache\n";
     357      if( $MODE{$if}=~/master/i ) {
     358        $output .=
     359        "$wicontrol -i $if -p 6            # hostap mode\n" .
     360        "$wicontrol -i $if -c 1            # broadcasting essid on\n" .
     361        "$wicontrol -i $if -n $ESSID{$if}  # network name\n" .
     362        "$wicontrol -i $if -q $ESSID{$if}  # ESSID\n" .
     363        "$wicontrol -i $if -f $CHANNEL{$if}# Channel\n";
     364      }
     365      else { 
     366        $output .=
     367        "$wicontrol -i $if -p 1            # Client mode (managed)\n" .
     368        "$wicontrol -i $if -n $ESSID{$if}  # ESSID\n" .
     369        "# No channel - client follows\n" .
     370        "# $wicontrol -i $if -f 0          # Channel\n";
     371      };
     372    $output .= "\n";
     373    };
     374  };
     375  return($output);
     376};
     377
    3413781;
Note: See TracChangeset for help on using the changeset viewer.