Ticket #1 (closed defect: fixed)

Opened 2 years ago

Last modified 5 months ago

WOL-Interface

Reported by: cinereous Owned by: oliver
Priority: low Milestone: freetz-1.0
Component: webinterface Version: pre16
Severity: normal Keywords: WOL etherwake
Cc: Product ID:
Firmware Version:

Description (last modified by oliver) (diff)

Das WOL-Interface zeigt bei bekannten Hosts (aus /etc/ethers) nach Dropdownauswahl im Interfacefeld den Hostnamen. Als Interface ist dieser natürlich nicht zu gebrauchen, es gehört dort eher eines der bekannten Interfaces hinein, oder aber Notfalls noch ein weiters Dropdown mit allen bekannten Interfaces.

MfG cinereous aka Silent-Tears

Change History

follow-up: ↓ 2   Changed 2 years ago by han-solo

Hallo hier ein Patch dafür: Quelle: /usr/mww-wol/cgi-bin/index.cgi

--- index.cgi
+++ index.cgi
@@ -44,18 +44,7 @@
 <table border="0" cellspacing="1" cellpadding="0">
 <tr>
 <td width="230">MAC: <input type="text" name="mac" size="17" maxlength="17" value=""></td>
-<td width="210">Interface: <select name="interf">
-<option title="tcp" value="tcp">lan</option>
-EOF
-
-for INTERFACE in $(ifconfig |grep ^[a-z]|cut -f1 -d ' ')
-do
-        echo '<option title="'$INTERFACE'" value="'$INTERFACE'">'$INTERFACE'</option>'
-        done
-
-cat << EOF
-
-</select></td>
+<td width="210">Interface: <input type="text" name="interf" size="10" maxlength="10" value=""></td>
 <td width="100"><input type="submit" value="WakeUp"></td>
 </tr>
 </table>

in reply to: ↑ 1   Changed 2 years ago by han-solo

Soryy, flasches diff. Hier das richtige:

--- index.cgi
+++ index.cgi
@@ -44,7 +44,18 @@
 <table border="0" cellspacing="1" cellpadding="0">
 <tr>
 <td width="230">MAC: <input type="text" name="mac" size="17" maxlength="17" value=""></td>
-<td width="210">Interface: <input type="text" name="interf" size="10" maxlength="10" value=""></td>
+<td width="210">Interface: <select name="interf">
+<option title="tcp" value="tcp">lan</option>
+EOF
+
+for INTERFACE in $(ifconfig |grep ^[a-z]|cut -f1 -d ' ')
+do
+        echo '<option title="'$INTERFACE'" value="'$INTERFACE'">'$INTERFACE'</option>'
+        done
+
+cat << EOF
+
+</select></td>
 <td width="100"><input type="submit" value="WakeUp"></td>
 </tr>
 </table>

  Changed 2 years ago by cinereous

Danke für den Patch. Funktioniert einwandfrei, jedoch bekomme ich bei mir das Interface lan doppelt. Das eine allerdings komplett ohne Funktion.

  Changed 2 years ago by oliver

  • owner set to oliver

Bei mir funktioniert r1686.

  Changed 2 years ago by cinereous

  • status changed from new to closed

  Changed 11 months ago by oliver

  • priority changed from minor to low
  • description modified (diff)
  • severity set to normal

  Changed 5 months ago by oliver

  • component changed from webif to webinterface
  • description modified (diff)
Note: See TracTickets for help on using tickets.