1. Bryan O'Sullivan
  2. netplug

Commits

Bryan O'Sullivan  committed fa14cf9

Add version information.

  • Participants
  • Parent commits f45f61f
  • Branches default

Comments (0)

Files changed (2)

File Makefile

View file
 install_opts := -o root -g root
 
 CFLAGS += -Wall -Werror -std=gnu99 -g -DNP_ETC_DIR='"$(etcdir)"' \
-	-DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O
+	-DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O -DNP_VERSION='"$(version)"'
 
 netplugd: config.o netlink.o lib.o if_info.o main.o
 	$(CC) -o $@ $^

File main.c

View file
             cfg_read = 1;
             break;
         case 'h':
+            fprintf(stderr, "netplugd version %s\n", NP_VERSION);
             usage(argv[0], 0);
             break;
         case 'i':