Changeset 4186 in genesis
- Timestamp:
- Mar 28, 2005, 10:16:16 AM (20 years ago)
- Location:
- tools/FreeBSD5_x
- Files:
-
- 1 added
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
tools/FreeBSD5_x/genesis.conf
r4184 r4186 12 12 @filelist = (); 13 13 $filelist[0]="dhcpd.conf"; 14 $filelist[1]="rc.local"; 15 $filelist[2]="rc.node.local"; 14 $filelist[1]="rc.node.local"; 16 15 $filelist[3]="resolv.conf"; 17 16 $filelist[4]="named.conf"; -
tools/FreeBSD5_x/wleiden.pl
r4184 r4186 205 205 } 206 206 else { 207 $output .= "ifconfig_$if=\"inet $IP{$interface}\"\n"; 208 }; 209 }; 210 return($output); 211 }; 212 213 sub rc_local { 214 my $output = genHeader("#"); 215 foreach my $if (sort keys %config) { 216 if( ($if =~ /^wi[0-9]$/i) and ($TYPE{$if} =~ /wireless/i) ) { 217 $output .= 218 "$wicontrol -i $if -s $SDESC{$if} # Nickname\n" . 219 "#$wicontrol -i $if -t 7 # TXrate\n" . 220 "$wicontrol -i $if -P 0 # PowerSave\n" . 221 "$wicontrol -i $if -Z # Zero SNR cache\n"; 222 if( $MODE{$if}=~/master/i ) { 223 $output .= 224 "$wicontrol -i $if -p 6 # hostap mode\n" . 225 "$wicontrol -i $if -c 1 # broadcasting essid on\n" . 226 "$wicontrol -i $if -n $ESSID{$if} # network name\n" . 227 "$wicontrol -i $if -q $ESSID{$if} # ESSID\n" . 228 "$wicontrol -i $if -f $CHANNEL{$if}# Channel\n"; 229 } 230 else { 231 $output .= 232 "$wicontrol -i $if -p 1 # Client mode (managed)\n" . 233 "$wicontrol -i $if -n $ESSID{$if} # ESSID\n" . 234 "# No channel - client follows\n" . 235 "# $wicontrol -i $if -f 0 # Channel\n"; 236 }; 237 $output .= "\n"; 238 }; 239 }; 240 return($output); 241 }; 242 207 $output .= "ifconfig_$if=\"inet $IP{$interface}"; 208 $output .= " $CARD_OPTION{$interface}"; 209 if( $TYPE{$if} =~ /wireless/i ) { 210 $output .= " ssid $ESSID{$interface}"; 211 if( $MODE{$if}=~/master/i ) { 212 $output .= " channel $CHANNEL{$interface}"; 213 $output .= " mediaopt hostap"; 214 } 215 else { 216 $output .= ""; 217 }; 218 }; 219 $output .= "\"\n"; 220 }; 221 }; 222 return($output); 223 }; 243 224 244 225
Note:
See TracChangeset
for help on using the changeset viewer.