18d6344f9Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 28d6344f9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 38d6344f9Sopenharmony_ci# you may not use this file except in compliance with the License. 48d6344f9Sopenharmony_ci# You may obtain a copy of the License at 58d6344f9Sopenharmony_ci# 68d6344f9Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 78d6344f9Sopenharmony_ci# 88d6344f9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 98d6344f9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 108d6344f9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 118d6344f9Sopenharmony_ci# See the License for the specific language governing permissions and 128d6344f9Sopenharmony_ci# limitations under the License. 138d6344f9Sopenharmony_cimkdir /backdata 148d6344f9Sopenharmony_cimount /dev/block/by-name/userdata /backdata 158d6344f9Sopenharmony_ci 168d6344f9Sopenharmony_ciif [ -d "/backdata/updater/log/faultlog" ]; 178d6344f9Sopenharmony_cithen 188d6344f9Sopenharmony_ci rm -rf /backdata/updater/log/faultlog/* 198d6344f9Sopenharmony_ci cp /data/log/faultlog/temp/cpp* /backdata/updater/log/faultlog 208d6344f9Sopenharmony_cielse 218d6344f9Sopenharmony_ci mkdir /backdata/updater/log/faultlog 228d6344f9Sopenharmony_ci cp /data/log/faultlog/temp/cpp* /backdata/updater/log/faultlog 238d6344f9Sopenharmony_cifi 248d6344f9Sopenharmony_ci 258d6344f9Sopenharmony_ciif [ -d "/backdata/updater/log/hilog" ]; 268d6344f9Sopenharmony_cithen 278d6344f9Sopenharmony_ci rm -rf /backdata/updater/log/hilog/* 288d6344f9Sopenharmony_ci cp /data/log/hilog/updater* /backdata/updater/log/hilog 298d6344f9Sopenharmony_cielse 308d6344f9Sopenharmony_ci mkdir /backdata/updater/log/hilog 318d6344f9Sopenharmony_ci cp /data/log/hilog/updater* /backdata/updater/log/hilog 328d6344f9Sopenharmony_cifi 33