added shell command to get gateway IP address

This commit is contained in:
2021-11-30 12:39:55 -05:00
parent e14815072d
commit 85ec7c6794

View File

@@ -64,8 +64,13 @@ filter_configure_sync(true);
# DHCP ip address and gateway address
/*
# Config for WAN Static
exec(sprintf('netstat -rn | grep "default"| awk \'{print $2;}\'', $gatewayIP);
print($gatewayIP);
/*
$config['interfaces'][$interface]['ipaddr'] = '192.168.101.1';
$config['interfaces'][$interface]['subnet'] = '30';
$config['interfaces'][$interface]['gateway'] = 'WAN_GW';
@@ -86,4 +91,3 @@ plugins_configure('monitor', true);
filter_configure_sync(true);
*/