#ifndef _CONFIG_H #define _CONFIG_H /* (cat tee wc xargs rev) */ #define BUF_SIZE 4096 /* Random source (shred) */ #define RAND_SOURCE "/dev/urandom" /* format for printf (head) */ #define HEAD_FMT "==> %s <==\n" /* block size (du) */ #define BLK_SIZE 512 /* mount config */ #define MOUNT_CFG "/etc/fstab" #define MOUNT_DEF_FS "ext4" #define MOUNT_LIST "/proc/mounts" #define MOUNT_OPT_SIZE 512 /* nologin sleep */ #define NOLOGIN_SLEEP 0 /* colors for ls */ #define LS_DIR_COLOR "\033[1;34m" #define LS_LINK_COLOR "\033[1;35m" #define LS_SOCK_COLOR LS_LINK_COLOR #define LS_FIFO_COLOR LS_LINK_COLOR #define LS_EXE_COLOR "\033[1;32m" /* Init scripts */ #ifdef INIT char *INIT_POWEROFF[] = {"/etc/rc.poweroff", NULL}; char *INIT_START[] = {"/etc/rc.init", NULL}; #define INIT_MSG "Starting micro-init..." #endif /* Max args (xargs) */ #define NARGS 1024 /* Arg size (xargs) */ #define ARG_SIZE 1024 /* Default cmd (xargs) */ #define ECHO_CMD "echo" /* Options: To disable, comment line */ /* Add escape-char support in echo */ #define ECHO_FANCY /* getloadavg() unavailable in android os */ #ifndef __ANDROID__ #define UPTIME_LOADAVG #endif #endif