DHCPInfo/main.sh

20 lines
296 B
Bash
Raw Permalink Normal View History

2023-11-13 00:08:51 +00:00
#!/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"