forgot to add main.sh

This commit is contained in:
Tristan Ancelet 2023-11-12 18:08:51 -06:00
parent 788f4c6173
commit 4a2cb7b28e
2 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,4 +3,5 @@
!.gitignore !.gitignore
!utils !utils
!utils/* !utils/*
!main.sh

19
main.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
PROJECT_DIR=`dirname $0`
CONFIG_FILE=$PROJECT_DIR/config.sh
if [[ -f $CONFIG_FILE ]]; then
. $CONFIG_FILE
fi
include myread.sh
include test.sh
include subnets.sh
include shared-networks.sh
include pools.sh
include hosts.sh
CONTENTS="$(<$DHCPD_CONFIG_FILE)"
test_all "$CONTENTS"