dhcpcd.enter-hook 314 B

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