plutux/rootfs: Extend check for default Xsession startup app.

Normally we start awesome if we do not have a remote-control.conf. This patch
extend the check for the default startup application and include also openbox.

Change-Id: I20b5ae3983b497ab3c7e4d7b99eebd1ccf47c416
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/161
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
plutux/rootfs: Specifiy files to be rotated.

In the past we have rotated all files in /var/log/ ending with .log.
This includes also the Xorg.0.log. But this file is not under syslog
control. So that we loose all new log messages, once the file has been
rotated.
Also we now inform the syslog daemon the way it is suppost to be done,
instead of restarting the service.

Change-Id: I91793c3938d43e75fedc84df64e8e1769a9c0077
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/163
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
plutux/rootfs: Show os version at login.

When logging on to the device, we now show the os release informations. This
will help the support team, so they can always see the currently running os
version instead of querying this info manually.

Change-Id: I32bfeb5849c1d87a118be58f0ee7eb113b6ebbd6
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/165
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Specifiy files to be rotated.

In the past we have rotated all files in /var/log/ ending with .log. This
includes also the Xorg.0.log. But this file is not under syslog control. So
that we loose all new log messages, once the file has been rotated.

Change-Id: I70b680a598d33489889c0f8142cc00065e176caa
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/168
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Fix symlinks for iflinkd.

Change-Id: I14b539beca4c758f1d8debc4578861f6607a6329
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/169
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Add new group to silence systemd warning.

Since 198 systemd's journald is looking for systemd-journal group, so to
keep it quiet we add the group.

Change-Id: I811619bba041a5aebbbcdbaf7f1256ee7f356b1a
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/173
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Limit disk-space for journald.

To set the disk space limit for system we add journald.conf and set
the limit 5M.

Change-Id: I1cd0877950d30d37c132a25b34024a0d22d9c6fb
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/174
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Set limit for linphone calls to 1.

Set the maximal number of simultanius calls in linphone to 1. All other
calls should be rejected with BUSY.

Change-Id: I94e2ae58c366dea43fab308caf51ce67dab757ec
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/181
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Set lldp link for remote-control.

This adds a new configuration file for remote-control to specify the
interface to be used by the remote-controls internal lldp-monitor. By
default the remote-control used the interfaces with the default route.
But because we now use bridges and lldp is not allowed there, we just
tell remote-control to use the primary interface.

Change-Id: Id83d282bfa5cb6b1940af18f35e5fc5b1da9a228
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/182
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
Revert "medcom-wide/rootfs: Do not include L4T gstreamer support."

This reverts commit b6b0bb4536f0fcf4880d9e183a21bc9bc13bad31.

The managemant wants to have the HW acceleration enabled, because this helps
to play h264 videos in 480p. Videos above this will not work and result most
likely in browser crashes.

Change-Id: Ic52cad0d054c84c600782f59cf55e8667a099acb
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/184
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
plutux/rootfs: Generate ssh keys if nessessary.

Before sshd is started we call a script to verify all keys do exsist. Also
we create /var/log/lastlog with the script to avoid a warning from sshd on
each logon.

Change-Id: I12ccfce1ba785f638f0608a151afdddb331ff826
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/164
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
plutux/rootfs: Update systemd configuration.

The latest version of systemd requires a new group. So we add this group and
update the configuration to silence some warnings.

Change-Id: Ic0f78ecf068bd7abae05afd7b6cd41aff634b5f3
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/166
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Adjust audio settings to match libmodem.

We changed a setting for the analog modem. This requires some adjustments
to the audio settings. Otherwise we can't hear anything.

Change-Id: Idc2ee2ef11169f1cb8126836fa84f491fc0a814e
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/180
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
plutux/rootfs: Use syslog for Xsession logging.

Instead of redirecting the output of from Xsession directly to Xsession.log,
we now pipe it against logger so syslog is used and we can rotate the logfile
savely via logrotate.

Change-Id: Ia480e2ab4f2ea3cb1b0457a183ee9a053d0dc228
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/162
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
plutux/rootfs: Remove obsolete preload

The LD_PRELOAD was required by L4T releases r12. Now that we used r15 for more
than a year and recently been switching to r16 this is now longer needed.

Change-Id: I160f2b0826521b3d47eb846f426532a36ff2738c
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/355
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Add build dependency to squashfs.

To generate the rootfs image we need the squashfs tools.

Change-Id: Icd2611dbf1daa70f0827351d3bd3ef9c6adc7bf0
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/176
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/initrd: Add build dependency to mkimage.

To generate the initrd uImage file we need the mkimage tool from u-boot
package.

Change-Id: Ice3243ec03fe77c025753200d328bd030cdd3be9
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/177
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Enable sensors support.

Start the sensor service on bootup.

Change-Id: I47ae5b6fed2b02ef3af6f7ad617479ba56b09b52
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/179
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
medcom-wide/rootfs: Generate ssh keys if nessessary.

Before sshd is started we call a script to verify all keys do exsist.
Also we create /var/log/lastlog with the script to avoid a warning from
sshd on each logon.

Change-Id: I275fc64997dbbae17a205a6f356bb580f67eccc7
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/172
Reviewed-by: Julian Scheel <julian.scheel@avionic-design.de>
medcom-wide/rootfs: Add plug for handset to asound.conf

Add a new plug named handset to the asound.conf, so we can use this name
from inside an application. This will avoid the need of to much knowlege
of the os and its configuration inside an application. Otherwise we need
to enumerate all devices and select one specific wich then depends on
the hardware we are running at.

Change-Id: I1082636e4ed57d5158739b5a7a4892b492c33da6
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/387
Reviewed-by: Julian Scheel <julian.scheel@avionic-design.de>