usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / httpd / version.c
blobd6a24425cd76b7fbb8f81b642d18f92c02112d9d
1 /*
3 Tomato Firmware
4 Copyright (C) 2006-2009 Jonathan Zarate
6 */
8 #include <epivers.h>
9 #include "tomato.h"
11 void asp_build_time(int argc, char **argv)
13 web_puts(tomato_buildtime);
16 void asp_version(int argc, char **argv)
18 #if 0
19 if (argc != 0) {
20 web_puts(tomato_version);
22 else {
23 web_write(tomato_version, strrchr(tomato_version, '.') - tomato_version);
25 #else
26 if (argc != 0) {
27 switch (atoi(argv[0])) {
28 case 2:
29 // kernel version
30 web_pipecmd("uname -r", WOF_NONE);
31 break;
32 case 3:
33 // wl driver version
34 web_puts(EPI_VERSION_STR);
35 break;
36 default:
37 // tomato version
38 web_puts(tomato_version);
39 break;
42 else {
43 web_puts(tomato_shortver);
45 #endif