mirror of
https://github.com/rancher/os.git
synced 2025-08-12 12:02:22 +00:00
make DHCP even debug print conditional on rancher.debug=true
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
a97854e089
commit
ab9f22a954
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "DHCPCD: $interface $reason" &>> /var/log/dhcpcd.debug.log
|
if [ "$(ros config get rancher.debug)" == "true" ]; then
|
||||||
echo "$(date)" &>> /var/log/dhcpcd.debug.log
|
echo "DHCPCD: $interface $reason" &>> /var/log/dhcpcd.debug.log
|
||||||
set | sed -ne 's/^new_//p' | sort &>> /var/log/dhcpcd.debug.log
|
echo "$(date)" &>> /var/log/dhcpcd.debug.log
|
||||||
echo "--------------------------" &>> /var/log/dhcpcd.debug.log
|
set | sed -ne 's/^new_//p' | sort &>> /var/log/dhcpcd.debug.log
|
||||||
|
echo "--------------------------" &>> /var/log/dhcpcd.debug.log
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user