Linksys WRT54GL

Das sind nur ein paar Notizen die ich während dem herumspielen mit meinem Linksys Router gemacht habe.

Momentan läuft mein Linksys WRT54GL v1.1 Router mit

   _______                     ________        __
  |       |.-----.-----.-----.|  |  |  |.----.|  |_
  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  |_______||   __|_____|__|__||________||__|  |____|
           |__| W I R E L E S S   F R E E D O M
  KAMIKAZE (8.09, r13132) ----------------------------
   * 10 oz Vodka       Shake well with ice and strain
   * 10 oz Triple sec  mixture into 10 shot glasses.
   * 10 oz lime juice  Salute!
  ---------------------------------------------------

Als Host System verwende ich ein Ubuntu 8.04

Alle Befehle mit ~# davor, werden auf dem Router ausgeführt und die mit ~$ sind auf meinem Host System.

Failsafe mode

Auf meinem Ubuntu System wird automatisch immer das Netzwerk neu konfiguriert, darum muss ich um die udp messages abzufangen in einer shell folgenden Befehl laufen lassen der mir einfach immer wieder eine statische IP setzt:

 ~$ while true; do sudo ifconfig eth0 up 192.168.1.5; done

ETH0 ist mit einem LAN Kabel zum Port 1 des Routers verbunden. in einer anderen Shell lasse ich netcat als UDP Listener laufen

  ~$ nc -l -p 4919 -u

Router mit dem Strom verbinden und gleichzeitig bereits den Stift auf dem Reset Knopf bereithalten und bei erscheinen der Nachricht

 Press reset now, to enter Failsafe!

den Stift für ein paar Sekunden reindrücken, danach kann man mit telnet auf 192.168.1.1 (egal was man auf dem Router konfiguriert hat) einloggen.

Mit nachfolgendem Befehl kann man die JFFS2 partition mounten:

 ~# /sbin/mount_root

Wireless Toggle Button

Wie auf OpenWRT wiki mit ein paar modifikationen

Das boot script in init.d habe ich ausgelassen, da mein Router danach nur noch am rebooten war und ich nur noch in den failsafe mode booten konte um zu connecten und die änderungen wieder rückgängig zu machen.

mein woggle script sieht so aus:

 #!/bin/sh
 WIFI_RADIOSTATUS=$(wlc radio)
 case "$WIFI_RADIOSTATUS" in
 0)
         wlc radio 1
         echo 0 > /proc/diag/led/ses_orange
         echo 1 > /proc/diag/led/ses_white ;;
 1)
         wlc radio 0
         echo 0 > /proc/diag/led/ses_white
         echo 1 > /proc/diag/led/ses_orange
         echo 2 > /proc/diag/led/wlan
         echo 1 > /proc/diag/led/power
 esac

Bei eingeschaltetem Wireless leuchtet das Cisco Logo Weiss und bei ausgeschaltetem Wireless leuchtet es Orange. Die echo linie mit dem led/power ist ein fix das nach dem Ausschalten des Wireless die power LED nicht immer blinkt.

Trackback URL for this post:

http://www.2030.tk/trackback/214

Interessant

Bis dato hatte ich Den WRT54GL nur mit DD-WRT gesehen, aber deine Version ist auch nett - danke für die Anleitung!

rac's picture

Bis jetzt läufts gut und

Bis jetzt läufts gut und ich war erstaunt das alles out-of-the-box läuft...

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <fn>...</fn> to insert automatically numbered footnotes.
  • You can use the <go> tags just like the <a> for nicer urls.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.