Compatibility with OPNsense backups.

Line 28: #pfSense does'nt.
This commit is contained in:
Alvaro Sedano 2019-09-13 03:07:51 +02:00 committed by GitHub
parent 747245f599
commit d57fa46982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ Function Get-BeginEndWO {
Param([Parameter(Mandatory=$true, Position=0)][string]$path) Param([Parameter(Mandatory=$true, Position=0)][string]$path)
#OPNsense saves on the xml encrypted file information about how to decrypt it. #OPNsense saves on the xml encrypted file information about how to decrypt it.
#pfSense not. #pfSense does'nt.
#Check if "^Version: OPNsense" exists in the line 2 #Check if "^Version: OPNsense" exists in the line 2
[string[]]$text = Get-Content $path -Encoding UTF8 [string[]]$text = Get-Content $path -Encoding UTF8