Not IFNAME but DEVNAME

Signed-off-by: mi2428 <mi2428782020@gmail.com>
This commit is contained in:
mi2428
2022-05-12 00:19:02 +09:00
parent eff1063a93
commit 01b917b789
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ cd $(dirname $0)
## Preparation
# Check parameters
for param in PIDFILE MAX_RETRY IFTYPE IFNAME PING_SRVS PING6_SRVS FQDNS GPDNS4 GPDNS6 V4WEB_SRVS V6WEB_SRVS V4SSH_SRVS V6SSH_SRVS; do
for param in PIDFILE MAX_RETRY IFTYPE DEVNAME PING_SRVS PING6_SRVS FQDNS GPDNS4 GPDNS6 V4WEB_SRVS V6WEB_SRVS V4SSH_SRVS V6SSH_SRVS; do
if [ -z $(eval echo '$'$param) ]; then
echo "ERROR: $param is null in configration file." 1>&2
exit 1

View File

@ -5,7 +5,7 @@
# Get the interface name.
function get_ifname() {
echo "$IFNAME"
echo "$DEVNAME"
return $?
}