
+ BitWarden module for easy autologon (not very secure but convinent on personal machines) - Will think this over some more afterwards * Get-Path will always return without trailing directory separator (might want to make this 'always' for dirs, but unsure yet) + Added Edit-MountUnit scaffolding for later modifying it to import a template on new mount units, and easy edit of systemd mount and automount units.
14 lines
405 B
PowerShell
14 lines
405 B
PowerShell
param(
|
|
[ValidateSet('List','Update','Auto','All')]
|
|
[string]$Mode = 'List'
|
|
)
|
|
|
|
$local:detectedDisistro = cat /etc/os-release | Select-String -Pattern "^ID=" | ForEach-Object { $_ -split '=' | Select-Object -Skip 1 }
|
|
switch ($detectedDisistro) {
|
|
'arch' {
|
|
Update-ArchOSz -Mode:$Mode $args
|
|
}
|
|
{$_ -in 'debian','ubuntu','zorin'} {
|
|
Update-UbuntuOSz -Mode:$Mode $args
|
|
}
|
|
}
|