mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Add _dhcpcd_info() to debug output
This commit is contained in:
parent
99b3767fd6
commit
48d29d368a
@ -108,6 +108,7 @@ function _generate_log() {
|
||||
_usb_info
|
||||
_wpa_info
|
||||
_dnsmasq_info
|
||||
_dhcpcd_info
|
||||
_interface_info
|
||||
_routing_info
|
||||
_iw_dev_info
|
||||
@ -218,6 +219,17 @@ function _dnsmasq_info() {
|
||||
fi
|
||||
}
|
||||
|
||||
function _dhcpcd_info() {
|
||||
_log_separator "Dhcpcd Contents"
|
||||
if [ -f "${RASPAP_DHCDPCD}" ]; then
|
||||
local stdout=$(cat ${RASPAP_DHCDPCD});
|
||||
_log_write "${stdout}"
|
||||
|
||||
else
|
||||
_log_write "${RASPAP_DHCDPCD} not present"
|
||||
fi
|
||||
}
|
||||
|
||||
function _interface_info() {
|
||||
local stdout=$(ip a)
|
||||
_log_separator "Interfaces"
|
||||
|
Loading…
x
Reference in New Issue
Block a user