Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
agent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
7
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ffab8a80
authored
4 months ago
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows 11
parent
bace35cc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
agent.py
+1
-1
context.py
+3
-2
win_exe/11/agent-winservice.exe
+0
-0
win_exe/11/watchdog-winservice.exe
+0
-0
No files found.
agent.py
View file @
ffab8a80
...
@@ -112,7 +112,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
...
@@ -112,7 +112,7 @@ class SerialLineReceiver(SerialLineReceiverBase):
self
.
transport
.
dataBuffer
=
b
""
self
.
transport
.
dataBuffer
=
b
""
self
.
transport
.
_tempDataBuffer
=
[]
# will be added to dataBuffer in doWrite
self
.
transport
.
_tempDataBuffer
=
[]
# will be added to dataBuffer in doWrite
self
.
transport
.
_tempDataLen
=
0
self
.
transport
.
_tempDataLen
=
0
self
.
transport
.
write
(
'
\r\n
'
)
self
.
transport
.
write
(
b
'
\r\n
'
)
if
self
.
running
:
if
self
.
running
:
self
.
send_command
(
self
.
send_command
(
command
=
'agent_started'
,
command
=
'agent_started'
,
...
...
This diff is collapsed.
Click to expand it.
context.py
View file @
ffab8a80
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"""
"""
import
logging
import
logging
import
platform
import
platform
import
re
logger
=
logging
.
getLogger
()
logger
=
logging
.
getLogger
()
...
@@ -12,10 +13,10 @@ def _get_virtio_device():
...
@@ -12,10 +13,10 @@ def _get_virtio_device():
from
infi.devicemanager
import
DeviceManager
from
infi.devicemanager
import
DeviceManager
dm
=
DeviceManager
()
dm
=
DeviceManager
()
dm
.
root
.
rescan
()
dm
.
root
.
rescan
()
# Search Virtio-Serial by
name TODO: search by class_guid
# Search Virtio-Serial by
service
for
i
in
dm
.
all_devices
:
for
i
in
dm
.
all_devices
:
if
i
.
has_property
(
"description"
):
if
i
.
has_property
(
"description"
):
if
"virtio-serial"
.
upper
()
in
i
.
description
.
upper
():
if
re
.
search
(
"virtio.*serial"
,
i
.
description
,
re
.
IGNORECASE
):
path
=
(
"
\\\\
?
\\
"
+
path
=
(
"
\\\\
?
\\
"
+
i
.
children
[
0
]
.
instance_id
.
lower
()
.
replace
(
'
\\
'
,
'#'
)
+
i
.
children
[
0
]
.
instance_id
.
lower
()
.
replace
(
'
\\
'
,
'#'
)
+
"#"
+
GUID
.
lower
()
"#"
+
GUID
.
lower
()
...
...
This diff is collapsed.
Click to expand it.
win_exe/11/agent-winservice.exe
0 → 100644
View file @
ffab8a80
File added
This diff is collapsed.
Click to expand it.
win_exe/11/watchdog-winservice.exe
0 → 100644
View file @
ffab8a80
File added
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment