This packet allowes to connect up to four buttons to the serial port of the fli4l router. Pressing one key triggers a system command, for example halt or reboot. The buttons can be used free. There are 14 variations possible (theoretically there are 15 possibilities, but with the 15th the hardware does not work).
The power / status LED (LED2) lights green as soon as the circuit is ready. During processing a command, the LED blinks. LED1 can be used free (further details below).
The keys match the following values:
If multiple keys are pressed simultanously the values are added together. This gives the function number for the command.
The commands to be executed are inserted into these lines:: OPT_CPANEL_FUNKTION1='command' Some commands require the full pathname.
Some Examples:
fli4lctrl dial pppoe Dial in into DSL fli4lctrl hangup pppoe Drop the DSL connection isdnctrl dial ippp0 Dial in into ISDN isdnctrl hangup ippp0 Drop the ISDN connection /sbin/reboot Reboot router /sbin/halt Shutdown router
There are four possibilities to map the status LED.
DSL:
Determine and show only the DSL status.
ISDN:
Determine and show the ISDN status. All circuits are sumarized. If at least one ISDN circuit is online, the LED1 lights.
DSLISDN:
Determine and show both DSL and ISDN status of all circuits.
SCRIPT:
Establish an own query. Take care of the following:
Example:
This entry queries the DSL status:
echo off > /var/run/cpanel.status fli4lctrl status | grep online >/dev/null && echo on > /var/run/cpanel.statusHint:: Insert only if you know what you do. A faulty entry can cause that cpanel doesn't start or work as expected.
If it doesn't work instantly, check your circuit. Take care of the right pins of your PC plug. If your router still has a 25 pin serial port the pinout is different to the one in the circuit drawing!!! If there is no error in your circuit, check the cable from your mainboard to the plug at the case. As there is no standard by the mainboard manufacturers there are different cables available. In doubt, check your mainboard user guide.
First check if cpanel starts at boottime. Near the end of the boot should a message appear. You can look at the process list by typing 'ps ax' at the console. If there is no cpanel in the list, you probably configured in config/cpanel.txt the item OPT_CPANEL='yes' to 'no'. A further source of error could be the graphics card. If you don't have a graphics cart in your router, the first serial port (COM1) is used for the console. Then you have to configure CPANEL_PORT='/dev/ttyS0' to '/dev/ttyS1'. Of course the circuit has to be connected into COM2.
Important: Ich übernehme keine Haftung für evtl. Schäden!
Probleme, Erfolgsberichte und Verbesserungsvorschläge bitte in die Newsgroup slpine.fli4l.opt posten.
Vielen Dank das Sie diese Dokumentation gelesen haben. Jetzt kann ich nur noch viel Spaß mit cpanel wünschen.