diff options
author | Ermal <eri@pfsense.org> | 2010-12-07 23:59:34 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-07 23:59:34 +0000 |
commit | 2a834dcd89e6e86446743680469c8fef9ca936fc (patch) | |
tree | 56661dd79cd03ab0e5d8ebb62814140c234fb19e /etc | |
parent | 6f247d1f76de6025079652ba8f2927be6a940ebc (diff) | |
download | pfsense-2a834dcd89e6e86446743680469c8fef9ca936fc.zip pfsense-2a834dcd89e6e86446743680469c8fef9ca936fc.tar.gz |
Adjust even advbase while synching. This should be params though.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.filter_synchronize | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index cd60e91..36567f7 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -64,6 +64,13 @@ function backup_vip_config_section() { $section_val = 255; $section['advskew'] = $section_val; } + if($section['advbase'] <> "") { + $section_val = intval($section['advbase']); + $section_val=$section_val+1; + if($section_val > 255) + $section_val = 255; + $section['advbase'] = $section_val; + } $temp['vip'][] = $section; } return $temp; |