1
0
mirror of https://github.com/rancher/os.git synced 2025-08-30 03:56:17 +00:00
os/images/01-base/dhcpcd/dhcpcd.enter-hook
2018-01-05 17:34:36 +08:00

9 lines
314 B
Bash

#!/bin/bash
if [ "$(ros config get rancher.debug)" == "true" ]; then
echo "DHCPCD: $interface $reason" &>> /var/log/dhcpcd.debug.log
echo "$(date)" &>> /var/log/dhcpcd.debug.log
set | sed -ne 's/^new_//p' | sort &>> /var/log/dhcpcd.debug.log
echo "--------------------------" &>> /var/log/dhcpcd.debug.log
fi