Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdoc:tt-dhcpv6-prefix-delegation [2017/06/07 10:19] abelbeck [DHCPv6 Client Action Script] |
userdoc:tt-dhcpv6-prefix-delegation [2017/06/07 10:20] (current) abelbeck [DHCPv6 Client Action Script] |
||
---|---|---|---|
Line 74: | Line 74: | ||
The '' | The '' | ||
- | As an example, a simple script to log when the DHCPv6 lease is updated and whether it changed: | + | As an example, a simple script to log when the DHCPv6 lease is updated and whether it changed:\\ |
!!Note ->!! Occurs by default with AstLinux 1.3.0 or later | !!Note ->!! Occurs by default with AstLinux 1.3.0 or later | ||
#!/bin/bash | #!/bin/bash | ||
| | ||
- | | + | case " |
- | | + | yes) changed=" |
- | yes) changed=" | + | |
- | | + | *) changed="" |
- | *) changed="" | + | esac |
- | esac | + | logger -t dhcp6c -p kern.info "IPv6 Prefix$changed: |
- | logger -t dhcp6c -p kern.info "IPv6 Prefix$changed: | + | |
- | fi | + | |
===== Debugging DHCPv6 ===== | ===== Debugging DHCPv6 ===== | ||