examples: improve chrony.nm-dispatcher.onoffline script
This commit is contained in:
parent
fb1af6e55b
commit
3050e29b1d
1 changed files with 4 additions and 2 deletions
|
@ -12,8 +12,10 @@ if [ $# -ge 2 ]; then
|
||||||
case "$2" in
|
case "$2" in
|
||||||
up|down|connectivity-change)
|
up|down|connectivity-change)
|
||||||
;;
|
;;
|
||||||
dhcp6-change)
|
dhcp4-change|dhcp6-change)
|
||||||
# No other action is reported for routable IPv6
|
# Actions "up" and "connectivity-change" in some cases do not
|
||||||
|
# guarantee that the interface has a route (e.g. a bond).
|
||||||
|
# dhcp(x)-change handles at least cases that use DHCP.
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exit 0;;
|
exit 0;;
|
||||||
|
|
Loading…
Reference in a new issue