Answer the question
In order to leave comments, you need to log in
Who faced writing dhcpcd-run-hooks?
Good afternoon, on this topic dhcpcd-run-hooks is very little described, for example, how to write a rule for building routes when raising the interface.
In the directory /etc/dhcp/dhclient-enter-hooks.d/ I create a myscr file with the following content
case $interface in
wlan0)
case $reason in
BOUND|RENEW|REBIND|REBOOT)
ip route add default via 192.168.1.1
;;
esac
;;
esac
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question