mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: fix two warnings
This commit is contained in:
parent
8db197ebe8
commit
3c18be1086
@ -559,6 +559,8 @@ function interfaces_gre_configure($device)
|
||||
|
||||
function _interfaces_gre_configure($gre)
|
||||
{
|
||||
global $config;
|
||||
|
||||
/*
|
||||
* The model used by GRE stuffs the alias IP into 'if' and we have
|
||||
* no way of directly seeing the interface (handled slightly better
|
||||
@ -2758,6 +2760,7 @@ function interface_dhcpv6_prepare($interface, $wancfg, $cleanup = false)
|
||||
$wanif = get_real_interface($interface, 'inet6');
|
||||
$id = interface_dhcpv6_id($interface);
|
||||
$syscfg = config_read_array('system');
|
||||
$dhcp6_debug = $syscfg['dhcp6_debug'] ?? '';
|
||||
|
||||
if (!empty($wancfg['adv_dhcp6_config_file_override'])) {
|
||||
$dhcp6cfile = $wancfg['adv_dhcp6_config_file_override_path'];
|
||||
@ -2781,7 +2784,7 @@ function interface_dhcpv6_prepare($interface, $wancfg, $cleanup = false)
|
||||
|
||||
$dhcp6cscript = <<<EOF
|
||||
#!/bin/sh
|
||||
if [ -n "{$syscfg['dhcp6_debug']}" ]; then
|
||||
if [ -n "{$dhcp6_debug}" ]; then
|
||||
/usr/bin/logger -t dhcp6c "dhcp6c \$REASON on {$wanif}"
|
||||
fi
|
||||
case \$REASON in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user