blob: a3b853fff2bb9a281a5346ae6ade387e2265342d [file] [log] [blame]
#!/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=/debugd/touchpad
fi
/opt/google/input/inputcontrol --log --logdir="$base"
tar cf - $(ls -1t $base/evdev_input_events_* | head -n 7 ) | \
uuencode -m touchscreen_activity_log.tar