Add make config back and update to use wg0 vpn interface which is available on all devices
This commit is contained in:
parent
c4a70dd814
commit
f59bf46e07
12
config.h
12
config.h
|
@ -63,9 +63,11 @@ static const char unknown_str[] = "";
|
||||||
*/
|
*/
|
||||||
static const struct arg args[] = {
|
static const struct arg args[] = {
|
||||||
/* function format argument */
|
/* function format argument */
|
||||||
{ load_avg, " %s |", NULL },
|
{ load_avg, " %s |", NULL },
|
||||||
{ ram_used, " %sB /", NULL },
|
{ ram_used, " %sB /", NULL },
|
||||||
{ ram_free, " %sB |", NULL },
|
{ ram_free, " %sB |", NULL },
|
||||||
{ uptime, " %s |", NULL },
|
{ netspeed_rx, " %sB/s", "wg0" },
|
||||||
{ datetime, " %s ", "%a %d/%m %T" },
|
{ netspeed_tx, " %sB/s |", "wg0" },
|
||||||
|
{ uptime, " %s |", NULL },
|
||||||
|
{ datetime, " %s ", "%a %d/%m %T" },
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# slstatus version
|
||||||
|
VERSION = 0
|
||||||
|
|
||||||
|
# customize below to fit your system
|
||||||
|
|
||||||
|
# paths
|
||||||
|
PREFIX = /usr/local
|
||||||
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
|
||||||
|
X11INC = /usr/X11R6/include
|
||||||
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
|
# flags
|
||||||
|
CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
|
||||||
|
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
|
||||||
|
LDFLAGS = -L$(X11LIB) -s
|
||||||
|
LDLIBS = -lX11
|
||||||
|
|
||||||
|
# compiler and linker
|
||||||
|
CC = cc
|
Loading…
Reference in New Issue