Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4461

Implement practical example of Mender-configure Apply script in demo layers/onboarding

    XMLWordPrintable

    Details

      Description

      Acceptance criteria:

      • There is a practical example script in /usr/lib/mender-configure/apply-device-config, which can control these things:
        • The built in leds on the Raspberry Pi
        • The timezone of the device
      • The script is added to:
        • meta-mender-demo (so it ends up in Yocto demo builds).
        • Our downloadable RPi images Our debian packages so that they can be used by the UI
      • Production builds do not contain a script, neither in Yocto, nor in mender-convert.
      • The config file uses the well named keys below, which are unlikely to clash with user keys, and which can be recognized by the UI to display tailored tooltips:
        • mender-demo-raspberrypi-led
          • Valid values are any value in /sys/class/leds/led0/trigger, plus "on" and "off", which should use "gpio" and set brightness (see this page for more information).
        • timezone
          • These values are simply passed to timedatectl set-timezone and hence systemd decides what the valid values are.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                a10040 Kristian Amlie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support