1: /*************************************************************************
2: * (C) 2009 AITNET - Sofia/Bulgaria - <office@aitbg.com>
3: * by Michael Pounov <misho@aitbg.com>
4: *
5: * $Author: misho $
6: * $Id: defs.h,v 1.2 2011/06/08 12:45:40 misho Exp $
7: *
8: *************************************************************************/
9: #ifndef __DEFS_H
10: #define __DEFS_H
11:
12:
13: #define MAX_STR 256
14: #define TFTP_BUF 516
15: #define TFTP_RETRY 7
16: #define TFTP_TIMEOUT 3
17:
18: #define DEFAULT_TIMEOUT "300"
19: #define DEFAULT_CONFIG "/etc/cfexec.conf"
20: #define DEFAULT_USER "root"
21: #define DEFAULT_MOUNT "/elwix"
22: #define DEFAULT_DEVICE "/dev/ufs/elwix"
23: #define DEFAULT_CHROOT "/"
24: #define DEFAULT_TMP "/tmp"
25: #define DEFAULT_TFTP 69
26: #define DEFAULT_TFTPDIR "/elwix/tftpboot"
27: #define DEFAULT_PKGDIR "/system"
28:
29: #define FIRMWARE_IMG "elwix-firmware.sys"
30: #define FIRMWARE_BAK "elwix-firmware.sys.old"
31:
32: #if defined(__FreeBSD__)
33: #elif defined(__OpenBSD__)
34: #endif
35:
36: #define VERB(x) if ((x) <= Verbose)
37: #define FTRACE(x) if ((x) <= Verbose) syslog(LOG_DEBUG, "Debug:: I`m %s(%d) ...\n", __func__, __LINE__)
38:
39:
40: extern int Verbose;
41:
42:
43: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>