Hallo zusammen,
bei mir funktioniert alles relativ problemlos.
Der kleine Schönheitsfehler ist dass nach dem Neustart des Routers das Script erneut per Hand ausgeführt werden muss damit es funktioniert.
Das Script ist aber im nvram geschrieben und wird auch ausgeführt (glaub ich) die online Leuchte blinkt etwa 10 Sekunden lang und geht dann aus. Dieses hab ich per Telnet einheheben:
cd /var
touch custom_script.sh
SSID="Linda"
WPA_PSK="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
CHANNEL="3"
wlctl up
wlctl ap 0
wlctl channel $CHANNEL
wlctl wet 1
wlctl wsec 6
wlctl wpa_auth 4
wlctl wepstatus 0
brctl addif br0 wl0
brctl setfd br0 5
ifconfig wl0 up
ifconfig eth0 up
ebtables -t broute -A BROUTING -p arp -j ACCEPT
ebtables -t broute -A BROUTING -p ipv4 -j ACCEPT
ebtables -t broute -A BROUTING -p ipv6 -j ACCEPT
ebtables -t broute -A BROUTING -j DROP
ledtool 3 4
nas -i wl0 -S -m 4 -k $WPA_PSK -s $SSID -w 6 -g 3600 &
sleep 5
if (pidof nas); then
kill -TERM `pidof nas`
sleep 1
if (pidof nas); then
kill -KILL `pidof nas`
fi
fi
nas -i wl0 -S -m 4 -g 3600 -s $SSID -w 2 -k $WPA_PSK &
sleep 2
wlctl join $SSID key $WPA_PSK amode wpapsk
if (wlctl status | grep 'Mode: Managed'); then
ledtool 3 1
else
ledtool 3 5
fi
nvram setfile custom_script=/var/custom_script.sh
nvram set custom_start=1
Kann mir jemand helfen???
FritzBox 7170 als Router und Sprrdport w500v als Bridge.
Danke