-
Notifications
You must be signed in to change notification settings - Fork 10
/
Install.ps1
executable file
·79 lines (68 loc) · 2.15 KB
/
Install.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Set-Location (Split-Path $script:MyInvocation.MyCommand.Path)
##Check for libc
Start-Process ".\Build\Unix\Hive\libc.sh" -wait
Set-Location ".\Build"
if(Test-Path ".\dir.sh")
{
Copy-Item ".\dir.sh" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x dir.sh"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\stats")
{
Copy-Item ".\stats" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x stats"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\active")
{
Copy-Item ".\active" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x active"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\get-screen")
{
Copy-Item ".\get-screen" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x get-screen"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\mine")
{
Copy-Item ".\mine" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x mine"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\logdata")
{
Copy-Item ".\logdata" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x logdata"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\pidinfo")
{
Copy-Item ".\pidinfo" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x pidinfo"
Set-Location "/"
Set-Location $CmdDir
}
if(Test-Path ".\dir.sh")
{
Copy-Item ".\dir.sh" -Destination "/usr/bin" -force | Out-Null
Set-Location "/usr/bin"
Start-Process "chmod" -ArgumentList "+x dir.sh"
Set-Location "/"
Set-Location $CmdDir
}