summaryrefslogtreecommitdiff
path: root/release/src/router/httpd/version.c
blob: bdd1a5d268fcad1d791f49f4a703f52fbb886248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*

	Tomato Firmware
	Copyright (C) 2006-2009 Jonathan Zarate

*/

#include "tomato.h"

void asp_build_time(int argc, char **argv)
{
	web_puts(tomato_buildtime);
}

void asp_version(int argc, char **argv)
{
	if (argc != 0) {
		web_puts(tomato_version);
	}
	else {
		web_write(tomato_version, strrchr(tomato_version, '.') - tomato_version);
	}
}