| #!/bin/sh |
| # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # Log all calls, with arguments, to /var/log/messages |
| logger -- "$0" "$@" |
| |
| base=/home/chronos/user/log |
| if [ "$1" = "alt" ]; then |
| base=/tmp/touchpad |
| mkdir -p $base |
| fi |
| |
| /opt/google/input/inputcontrol --log --logdir="$base" |
| |
| tar cf - $(ls -1t $base/evdev_input_events_* | head -n 7 ) 2>/dev/null | \ |
| uuencode -m touchscreen_activity_log.tar |