Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
neues Baselayout / wireless / master-mode / iwpriv addMac
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
moe
Veteran
Veteran


Joined: 28 Mar 2003
Posts: 1289
Location: Potsdam / Germany

PostPosted: Sat Jun 11, 2005 7:31 pm    Post subject: neues Baselayout / wireless / master-mode / iwpriv addMac Reply with quote

Hi,

ich hab auf meinem Router beim Baselayout-Update, versucht mein eigenes Initscript für die WLan-Karte im Mastermode durch die Möglichkeiten des neuen Baselayouts zu ersetzen.
Mein Script sah so aus:
Code:
modprobe prism54
ifconfig eth2 up
ifconfig eth2 192.168.200.254
iwconfig eth2 channel 7
iwconfig eth2 mode Master
iwconfig eth2 essid fump2
iwpriv eth2 setPolicy 2
iwpriv eth2 addMac x1
iwpriv eth2 addMac x2
iwpriv eth2 addMac x3
iwpriv eth2 addMac x4
iwpriv eth2 addMac x5
iwpriv eth2 addMac x6
iwpriv eth2 addMac x7
iwpriv eth2 addMac x8

/etc/conf.d/wireless sieht so aus:
Code:

modules_eth2=( "iwconfig" )
essid_eth2="fump2"
mode_eth2="master"
channel_eth2="7"
iwpriv_eth2="setPolicy 2"
iwpriv_eth2="addMac x1"
iwpriv_eth2="addMac x2"
iwpriv_eth2="addMac x3"
iwpriv_eth2="addMac x4"
iwpriv_eth2="addMac x5"
iwpriv_eth2="addMac x6"
iwpriv_eth2="addMac x7"
iwpriv_eth2="addMac x8"

Eigentlich sollte man erwarten, dass das zum selben Ergebnis führt, allerdings bei /etc/init.d/net.eth2 start wird an sich alles eingestellt, ausser der Macliste, die besteht aus 4 oder 5 gleichen Macs (meist x8 ) mal sind davor noch ein paar richtige, aber die Liste wurde noch nie komplett aufgebaut..

Jemand ne Ahnung warum, oder noch besser, wie es richtig funktioniert?

Die Karte ist eine prism54..

Gruss & Danke Maurice
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sat Jun 11, 2005 9:00 pm    Post subject: Reply with quote

Also ich sehe das so: Dein ursprüngliches Skript hat dafür 9 einzelne Befehle abgesetzt während du im neuen configfile die Variable iwpriv_eth2 mit jeder Zeile neu setzt. Am Ende dürfte da nur noch drinstehen:
Code:
addMac x8

Schuss ins Blaue: Klappt es vielleicht wenn du es so machst?
Code:
iwpriv_eth2="addMac x1 x2 x3 ..."
Back to top
View user's profile Send private message
moe
Veteran
Veteran


Joined: 28 Mar 2003
Posts: 1289
Location: Potsdam / Germany

PostPosted: Sat Jun 11, 2005 10:47 pm    Post subject: Reply with quote

Hmm, wäre möglich..
Das iwpriv Kommando unterstützt leider nur eine Mac pro addMac-Aufruf, und das iwpriv_eth2 als Tupel zu schreiben,
Code:
iwpriv_eth2 = ( "x1" "x2" ...)

hat leider denselben Effekt :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum