forgot to add main.sh
This commit is contained in:
parent
788f4c6173
commit
4a2cb7b28e
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,4 +3,5 @@
|
|||||||
!.gitignore
|
!.gitignore
|
||||||
!utils
|
!utils
|
||||||
!utils/*
|
!utils/*
|
||||||
|
!main.sh
|
||||||
|
|
||||||
|
19
main.sh
Executable file
19
main.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user