mirror of
https://github.com/freedbygrace/PSOPNSenseAPI.git
synced 2026-08-12 03:38:03 +00:00
Fix cmdlet name conflict by renaming Upgrade-OPNSenseFirmware to Start-OPNSenseFirmwareUpgrade
This commit is contained in:
@@ -102,10 +102,12 @@
|
||||
'Set-OPNSenseVLAN',
|
||||
'Uninstall-OPNSensePlugin',
|
||||
'Update-OPNSenseFirmware',
|
||||
'Upgrade-OPNSenseFirmware'
|
||||
'Start-OPNSenseFirmwareUpgrade'
|
||||
)
|
||||
VariablesToExport = @()
|
||||
AliasesToExport = @()
|
||||
RequiredAssemblies = @('lib\System.Net.IPNetwork.dll', 'lib\Newtonsoft.Json.dll')
|
||||
NestedModules = @('lib\PSOPNSenseAPI.dll')
|
||||
PrivateData = @{
|
||||
PSData = @{
|
||||
Tags = @('PowerShell', 'OPNSense', 'Firewall', 'API')
|
||||
|
||||
@@ -1,13 +1,2 @@
|
||||
# Load the main assembly directly
|
||||
$mainDllPath = Join-Path $PSScriptRoot "lib\PSOPNSenseAPI.dll"
|
||||
|
||||
Write-Verbose "Loading assembly from $mainDllPath"
|
||||
|
||||
try {
|
||||
Add-Type -Path $mainDllPath
|
||||
Write-Verbose "Successfully loaded assembly from $mainDllPath"
|
||||
} catch {
|
||||
$errorMessage = $_.Exception.Message
|
||||
Write-Error "Failed to load assembly from $($mainDllPath): $($errorMessage)"
|
||||
throw
|
||||
}
|
||||
# This file is intentionally empty.
|
||||
# The module uses NestedModules in the PSD1 file to load the assemblies.
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user