- Timestamp:
- Nov 2, 2005, 12:31:31 AM (19 years ago)
- Location:
- tools/FreeBSD5_x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/FreeBSD5_x/genesis.conf
r4317 r4981 2 2 # 3 3 # Variable file 4 5 $NG = 0; 4 6 5 7 #debugging variable … … 12 14 @filelist = (); 13 15 $filelist[0]="dhcpd.conf"; 16 $filelist[1]="rc.local"; # Always include (as to overwrite existing file) 14 17 $filelist[2]="rc.node.local"; 15 18 $filelist[3]="resolv.conf"; -
tools/FreeBSD5_x/wleiden.pl
r4939 r4981 209 209 $output .= "ifconfig_$if=\"inet $IP{$interface}"; 210 210 $output .= " $CARD_OPTION{$interface}"; 211 if( $TYPE{$if} =~ /wireless/i ) { 211 if ($TYPE{$if} =~ /wireless/i) { 212 $output .= "\"\t# rc.local: " unless $NG; 212 213 $output .= " ssid $ESSID{$interface}"; 213 214 if( $MODE{$if}=~/master/i ) { … … 339 340 }; 340 341 342 343 sub 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 341 378 1;
Note:
See TracChangeset
for help on using the changeset viewer.