File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 140
140
/usr/local/etc/rc.syshook.d/05-beep.stop
141
141
/usr/local/etc/rc.syshook.d/05-update.early
142
142
/usr/local/etc/rc.syshook.d/10-configd.early
143
+ /usr/local/etc/rc.syshook.d/10-newwanip.start
143
144
/usr/local/etc/rc.syshook.d/15-php.early
144
145
/usr/local/etc/rc.syshook.d/20-backup.early
145
146
/usr/local/etc/rc.syshook.d/20-freebsd.start
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ require_once("interfaces.inc");
41
41
$ argument = isset ($ argv [1 ]) ? trim ($ argv [1 ]) : '' ;
42
42
43
43
if (file_exists ('/var/run/booting ' )) {
44
- log_error ("IP renewal ignored during boot on ' {$ argument }' " );
44
+ log_error ("IP renewal deferred during boot on ' {$ argument }' " );
45
+ file_put_contents ('/tmp/newwanip_ ' . uniqid (), $ argument );
45
46
return ;
46
47
}
47
48
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ require_once("interfaces.inc");
41
41
$ argument = isset ($ argv [1 ]) ? trim ($ argv [1 ]) : '' ;
42
42
43
43
if (file_exists ('/var/run/booting ' )) {
44
- log_error ("IP renewal ignored during boot on ' {$ argument }' " );
44
+ log_error ("IP renewal deferred during boot on ' {$ argument }' " );
45
+ file_put_contents ('/tmp/newwanipv6_ ' . uniqid (), $ argument );
45
46
return ;
46
47
}
47
48
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ for IPV4 in $( find /tmp -type f -name " newwanip_*" ) ; do
4
+ /usr/local/opnsense/service/configd_ctl.py interface newip $( cat " ${IPV4} " )
5
+ rm " ${IPV4} "
6
+ done
7
+
8
+ for IPV6 in $( find /tmp -type f -name " newwanipv6_*" ) ; do
9
+ /usr/local/opnsense/service/configd_ctl.py interface newipv6 $( cat " ${IPV6} " )
10
+ rm " ${IPV6} "
11
+ done
You can’t perform that action at this time.
0 commit comments