-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rc: defer newwanip not exectued during boot
PR: https://forum.opnsense.org/index.php?topic=6891.0 (cherry picked from commit 3869385) (cherry picked from commit c371155)
- Loading branch information
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/sh | ||
|
|
||
| for IPV4 in $(find /tmp -type f -name "newwanip_*"); do | ||
| echo -n "Reconfiguring IPv4: " | ||
| /usr/local/opnsense/service/configd_ctl.py interface newip $(cat "${IPV4}") | ||
| rm "${IPV4}" | ||
| done | ||
|
|
||
| for IPV6 in $(find /tmp -type f -name "newwanipv6_*"); do | ||
| echo -n "Reconfiguring IPv6: " | ||
| /usr/local/opnsense/service/configd_ctl.py interface newipv6 $(cat "${IPV6}") | ||
| rm "${IPV6}" | ||
| done |