Commit Graph

94 Commits

Author SHA1 Message Date
20f166f9cd added random string and echo/log functions 2021-12-03 23:06:54 -05:00
c006654fa3 added random string to make log file clear of running instances 2021-12-03 23:05:45 -05:00
a61fba5e89 create log file function 2021-12-03 22:49:45 -05:00
d51a3484aa Merge branch 'master' of https://git.johnhgaunt.com/jgaunt/opnsense-carp-dhcp 2021-12-03 22:37:04 -05:00
e4ca9a00b2 removed unnecessary code 2021-12-03 22:36:57 -05:00
7ba0e46cf7 changed name and made the backup script only update when carp is in backup state 2021-12-03 22:36:13 -05:00
731962e7a8 Add 'actions_carpWANDHCP.conf' 2021-12-02 23:41:11 -05:00
28a8b6540b removed trim from sync status shell as it was not working 2021-12-02 15:21:23 -05:00
761717f438 covnerted while always true loop to a do while loop 2021-12-02 15:15:46 -05:00
eb67dc2972 added break for getting wan dhcp details as more than a few interfaces would break it 2021-12-02 15:05:56 -05:00
a99b09ee7b Update 'README.md' 2021-12-02 14:58:57 -05:00
055e5c4138 updated the do while loop to include the dhcp request 2021-12-01 20:15:56 -05:00
04b206d92a added -f in readme 2021-12-01 18:20:43 -05:00
d01cb56e0e added verbiage to make it clear that we are trying to get dhcp on wan 2021-12-01 18:05:17 -05:00
5038789595 moved logic around the end of the do while loop so I would report on things 2021-12-01 15:54:56 -05:00
86cdc09435 added --force|-f option to force script to run 2021-12-01 15:43:07 -05:00
8c2fcbf771 fixed variable 2021-12-01 15:37:15 -05:00
0f0247e1fb added new lines in 2021-12-01 15:36:38 -05:00
565bfbc363 added outputs 2021-12-01 15:28:16 -05:00
36415542fd started loop for getting wan DHCP 2021-12-01 15:23:30 -05:00
53dbcba377 added trim to remove white spaces 2021-11-30 20:08:53 -05:00
fbe3e548ff explode array, specified the array value needed 2021-11-30 20:07:47 -05:00
4c89f8267d fucking semicolons 2021-11-30 20:05:41 -05:00
0a66d97151 added words to replace variable sections 2021-11-30 20:03:13 -05:00
26d17877cb added another sleep after the sync host is backup 2021-11-30 20:02:26 -05:00
f9928435ea Merge branch 'master' of https://git.johnhgaunt.com/jgaunt/opnsense-carp-dhcp 2021-11-30 20:00:37 -05:00
6aa7f1d379 added logic to only backup is gateway ip is different 2021-11-30 20:00:33 -05:00
ae1aad3810 Update 'README.md' 2021-11-30 19:58:21 -05:00
70386222c1 removed args from master script and removed unused variables 2021-11-30 19:49:08 -05:00
8238dce8d7 changed to master and backup files 2021-11-30 19:47:40 -05:00
f75e781e8e added logic to wait for backup host to come back online before trying carp sync 2021-11-30 18:14:31 -05:00
b730d1e1a0 removed comment 2021-11-30 18:11:58 -05:00
c2d70e605c fixed logic for ping test 2021-11-30 18:11:28 -05:00
33c70eefa5 typo 2021-11-30 18:10:32 -05:00
ea42531640 added logic to test if backup router is up 2021-11-30 18:10:11 -05:00
d80d2fc44c comments 2021-11-30 18:03:34 -05:00
e0746aea69 added some comments 2021-11-30 18:02:03 -05:00
0f0af1fe8a in the arg logic, updated gateway count 2021-11-30 18:00:10 -05:00
8ad302e5cc update gateway $interface to $wanInterface 2021-11-30 17:58:50 -05:00
05dc7552a2 moved the return when using the arg as the entire script still ran. added new lines 2021-11-30 17:57:41 -05:00
91ccfc426d semicolon 2021-11-30 17:56:44 -05:00
b3b12ac5d5 updated script to take args for gateway ip on backup node. made a function for config changes 2021-11-30 17:54:46 -05:00
acc3d308e5 comments 2021-11-30 17:34:56 -05:00
0147c30be3 fixed typo on gateway monitor disable 2021-11-30 17:33:21 -05:00
bcef1c947d fixed gateway count variable 2021-11-30 17:32:14 -05:00
098289d92c removed $ as typo 2021-11-30 17:31:14 -05:00
5335f0df23 removed periods after variable output 2021-11-30 17:30:41 -05:00
cbdfa1f62b stupid semicolons 2021-11-30 17:29:37 -05:00
6db232081a added gateway IP into wan vip description 2021-11-30 17:27:36 -05:00
637bb17592 updated syncip from pfsync to synctoip. added output for variables 2021-11-30 17:08:12 -05:00