#=========================================================#
# Boot-Script                                             #
#=========================================================#

# Configuration-Provider starten
New-PSDrive -PSProvider DNConfiguration -Name dncfg -Root \ -Configuration $runtime.Configuration | Out-Null

# Runtime-Provider starten
New-PSDrive -PSProvider DNRuntime -Name dn -Root \ -Runtime $runtime | Out-Null

# Script-Pfad zur Umgebungsvariable hinzufügen
${env:PATH} = "${env:PATH};${dncfg:ScriptsPath}"

# Standardbibliothek laden
. lib.ps1

#
# Aliase
#
Set-Alias "quit" "Quit-DynamicNodes"
Set-Alias "nn" "New-Node"
Set-Alias "rn" "Remove-Node"
Set-Alias "cn" "Connect-Ports"
Set-Alias "dcn" "Disconnect-Ports"
Set-Alias "cancn" "Check-Connectability"
Set-Alias "iscn" "Check-Connection"
Set-Alias "log" "Write-DNLog"

# In den Pfad des DynamicNodes-Providers wechseln
Set-Location dn:\Runtime

""
"DynamicNodes Core Shell"
"-----------------------"