1
0
mirror of https://github.com/rancher/os.git synced 2025-09-19 17:38:30 +00:00
Files
os/images/01-base/etc/dhcpcd.enter-hook
niusmallnan b32e8e37d2 Refactoring each os image
More reasonable use of COPY, easy to maintain
2018-12-03 16:13:50 +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