File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2937SRC_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
4049SYSTEMD_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.
4254do_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} /
Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments