added shell command to get gateway IP address
This commit is contained in:
@@ -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);
|
||||
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user