Skip to content

Commit 1616c50

Browse files
authored
Merge pull request #67 from WallaceIT/remote_tools
Add tools and helpers for remote usage
2 parents b7e1383 + 5067743 commit 1616c50

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

recipes-devtools/python/python3-labgrid.inc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,19 @@ RDEPENDS:${PN} = " \
2424
python3-requests \
2525
python3-xmodem \
2626
ser2net \
27+
sudo \
28+
"
29+
30+
RRECOMMENDS:${PN} = " \
31+
ethtool \
32+
iproute2-ip \
33+
rsync \
34+
socat \
2735
"
2836

2937
SRC_URI = " \
3038
file://configuration.yaml \
39+
file://helpers.yaml \
3140
file://labgrid-exporter.service \
3241
file://environment \
3342
"
@@ -39,9 +48,16 @@ inherit python_setuptools_build_meta systemd
3948

4049
SYSTEMD_SERVICE:${PN} = "labgrid-exporter.service"
4150

51+
# Client/library access to the device via SSH as "root" user is assumed.
52+
# Additional configuration (dedicated user and related sudoers config for
53+
# password-less helpers usage) shall be done separately.
4254
do_install:append() {
55+
install -d ${D}${sbindir}
56+
install -m 0755 ${S}/helpers/labgrid-* ${D}${sbindir}
57+
4358
install -d ${D}${sysconfdir}/labgrid
4459
install -m 0644 ${UNPACKDIR}/configuration.yaml ${D}${sysconfdir}/labgrid
60+
install -m 0644 ${UNPACKDIR}/helpers.yaml ${D}${sysconfdir}/labgrid
4561
install -m 0644 ${UNPACKDIR}/environment ${D}${sysconfdir}/labgrid
4662
install -d ${D}${systemd_system_unitdir}
4763
install -m 0644 ${UNPACKDIR}/labgrid-exporter.service ${D}${systemd_system_unitdir}/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
### This is an example labgrid helpers. This file will be installed to
2+
### /etc/labgrid/helpers.yaml and read by helpers that need a configuration.
3+
4+
## Configuration for labgrid-raw-interface; under denied-interfaces a list of
5+
## interfaces that shall not be touched by labgrid can be specified.
6+
#raw-interface:
7+
# denied-interfaces:
8+
# - 'eth1'

0 commit comments

Comments
 (0)