blob: 3cce3253c1bd723d4507815208ced12196ad4108 [file] [log] [blame]
#!/bin/sh -e
#
# Copyright (c) 2013 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.
#
# Pi specific post USB reset wipe script. This will be run after OQC:
# 1. shut down the machine and disconnect the battery for shipping.
# remove the cached vpd log file so that the next reboot will re-generate it
# in /etc/init/vpd-log.conf.
VPD_2_0="/var/log/vpd_2.0.txt"
rm -f $VPD_2_0
sync
sleep 3
# You must put this line in the end of file.
/usr/sbin/battery_cut_off.sh
# Battery cut-off is failed if it returns with 1.
if [ $? -eq 1 ]; then
echo "Battery cut-off is failed."
fi
exit 1