nah
This commit is contained in:
+5
-1
@@ -10,11 +10,15 @@ $PASSWD = Get-DefaultPassword $PASSWD
|
|||||||
pscp.exe -l root -scp -pw $PASSWD -r 192.168.100.1:/etc/ldlda_help $PSScriptRoot
|
pscp.exe -l root -scp -pw $PASSWD -r 192.168.100.1:/etc/ldlda_help $PSScriptRoot
|
||||||
pscp.exe -l root -scp -pw $PASSWD 192.168.100.1:/etc/rc.local $PSScriptRoot
|
pscp.exe -l root -scp -pw $PASSWD 192.168.100.1:/etc/rc.local $PSScriptRoot
|
||||||
|
|
||||||
|
Remove-Item -Recurse (Join-Path $PSScriptRoot "root")
|
||||||
|
pscp.exe -l root -scp -pw $PASSWD -r 192.168.100.1:/root $PSScriptRoot
|
||||||
|
|
||||||
|
|
||||||
$initDir = Join-Path $PSScriptRoot 'init.d'
|
$initDir = Join-Path $PSScriptRoot 'init.d'
|
||||||
New-Item -ItemType Directory -Force -Path $initDir | Out-Null
|
New-Item -ItemType Directory -Force -Path $initDir | Out-Null
|
||||||
|
|
||||||
# these are sum
|
# these are sum
|
||||||
$files = "update_wakey" , "wakey" , "update_tailscale" , "wireguard_setup"
|
$files = "update_wakey" , "wakey" , "update_tailscale" , "wireguard_setup", "lda-override"
|
||||||
$remote = $files.ForEach({ "/etc/init.d/$_" })
|
$remote = $files.ForEach({ "/etc/init.d/$_" })
|
||||||
$remote | ForEach-Object {
|
$remote | ForEach-Object {
|
||||||
pscp.exe -l root -scp -pw $PASSWD "192.168.100.1:$_" "$initDir\"
|
pscp.exe -l root -scp -pw $PASSWD "192.168.100.1:$_" "$initDir\"
|
||||||
|
|||||||
Reference in New Issue
Block a user