- 04 Jan, 2015 31 commits
-
-
José Luis Gutiérrez authored
This adds the possibility to use PERL parsing from PHP extension PCRE. It is usefull for future file parsing changes from PHP.
-
Benoit Rat authored
Our web pages use the "jquery" javascript library, from code.jquery.com. With this commit we refer to a local copy of the file, instead of always referring to the upstream instance -- which failed when the WRS was not connected to the outside world, and generated extra traffic anyways. Now head.php refers to the local copy; the WRS filesystem includes both the source form (http://code.jquery.com/jquery-1.10.1.js) and the minimized form, unreadable but shorter, which is actually served to the browser (http://code.jquery.com/jquery-1.10.1.min.js). Note: commit author is benoit but then alessandro added the unminimized javascript and wrote the commit message: any error or imprecision is a's, not b's.
-
José Luis Gutiérrez authored
- white rabbit figure added - style.css: adding style for the image and the text - reboot.php: adding new <div> for image and text
-
José Luis Gutiérrez authored
Removing images not used: footer.jpg footnote.gif header.jpg footer.php minor fix (footnote.gif link removed)
-
José Luis Gutiérrez authored
New reboot system. It shows now a loading gif image without crashing because of not accessing the WRS anymore. - Reboot javascript function: displays image, message & reboots without web crash - Redirect javascript function: When rebooting, it redirects to index.hp after 50s. - All shell_exec("reboot") calls have been replaced by wrs_reboot() in all files. - loader.gif added - new entry to style.css, one for the gif animation and other for the text. - reboot.php & rebooter.php carry out the new reboot.
-
José Luis Gutiérrez authored
Javascript folder created (/js) with scripts.js file. This file contains all javascript functions. head.php now includes this file instead of include the JS functions directly.
-
José Luis Gutiérrez authored
File newlines were a mixture of Windows/Unix. All php files are now in Unix-like format Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
If no specific alpha is passed in configuration, we can't even know if it is positive or negative. 0 is a safe default, and it is the exact correct value for dual-fiber situations. The next commit, which adds documentation, explains the thing better. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds the timing mode to Kconfig, but it is only used in later commits. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This replicates the bevaviour of previous code, unchanged. Only, Kconfig is now used to specify the alpha for the pair of wavelengths being used. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds fiber parameters to Kconfig. To be used to specify fiber-specific alpha values. Use in the next commits. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Rename "index" to "fiber_index", because it was never used, and it will be the fiber index (enumerating fiber type 0..3). By reusing a field of the same size, I don't need to change version number nor ppsi (that uses the structure, but doesn't care about this value).q Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit uses dot-config (previous commit), in exactly the same way as previous code. No change in behaviour is there, as confirmed by looking at shared memory values. However, the alpha value is not part of the SFP definition any more, but it is part of the fiber type (later commits). So it is currently hardwired in the code, matching previous config values. The data structures are slightly changed, so the version in shared memory is increased too. wrs_dump_shmem is updated at the same time and ppsi is updated to get the new headers. As a side effect, this uses calloc() instead of malloc(), and sets a sensible (though unused) value in the "flags" field of the sfp data. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds SFP parameters to Kconfig. To be used in place of the sfp_database.conf. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit uses dot-config (previous commit), in exactly the same way as previous code. No change in behaviour is there, as confirmed by looking at shared memory values. As a side effect, the ports as listed in shared memory (wrs_dump_shmem) are in the right order instead of random order (this was due to use of lua's hash functions). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit adds port parameters to Kconfig, using the same values we currently have in wrsw_hal.conf (i.e: tx delay = 0, rx delay = 160000 or 161200). These values are used in later commits, where this dot-config stuff is replacing wrsw_hal.conf. The "role=" and "fiber=" values will be used later, but I'd better write them now to avoid excessive edits to this file. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 03 Jan, 2015 2 commits
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Benoit Rat authored
Most of the calls in HAL use TRACE to print to stdout/stderr however the full TRACE is depending on DEBUG flag at compilation. This is a quick hack, and the whole TRACE system should be re written with something like: TRACE_P_FATAL(...) TRACE_P_ERROR(...) TRACE_P_WARN(...) TRACE_P_INFO(...) TRACE_P_VERBOSE(...) #ifdef DEBUG TRACE_P_DEBUG(...) #endif
-
- 18 Dec, 2014 2 commits
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
wr_mon still uses minipc to communicate with ppsi Signed-off-by: Adam Wujek <adam.wujek@cern.ch>
-
- 17 Dec, 2014 3 commits
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The shell we have in the switch, unfortunately, reports variables in "set" as quoted. This means we had all our substitutions wrong in snmpd.conf. This commit removes the quotes, and stuff now works better. I got this in my syslog, for example: /wr/etc/snmpd.conf: line 10: Error: cannot create trapsink: '192.168.16.1' getaddrinfo: 'morgana' Name or service not known Because it had to be "morgana" not "'morgana'", same for IP address. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 15 Dec, 2014 1 commit
-
-
Alessandro Rubini authored
PPSi is not optional, so change Kconfig in order not to run the question. Also, rename "Local" to "Local Network" configuration. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 12 Dec, 2014 1 commit
-
-
Alessandro Rubini authored
-