afaa5fbccc
While mount_all and umount_all were updated to use ro.boot.fstab_suffix, I neglected to update swapon_all. Trivially copied from umount_all. Bug: 142424832 Change-Id: Icd706fe7a1fe16c687cd2811b0a3158d7d2e224e
47 lines
2 KiB
C++
47 lines
2 KiB
C++
/*
|
|
* Copyright (C) 2019 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "builtin_arguments.h"
|
|
#include "result.h"
|
|
|
|
namespace android {
|
|
namespace init {
|
|
|
|
Result<void> check_chown(const BuiltinArguments& args);
|
|
Result<void> check_exec(const BuiltinArguments& args);
|
|
Result<void> check_exec_background(const BuiltinArguments& args);
|
|
Result<void> check_exec_reboot_on_failure(const BuiltinArguments& args);
|
|
Result<void> check_interface_restart(const BuiltinArguments& args);
|
|
Result<void> check_interface_start(const BuiltinArguments& args);
|
|
Result<void> check_interface_stop(const BuiltinArguments& args);
|
|
Result<void> check_load_system_props(const BuiltinArguments& args);
|
|
Result<void> check_loglevel(const BuiltinArguments& args);
|
|
Result<void> check_mkdir(const BuiltinArguments& args);
|
|
Result<void> check_mount_all(const BuiltinArguments& args);
|
|
Result<void> check_restorecon(const BuiltinArguments& args);
|
|
Result<void> check_restorecon_recursive(const BuiltinArguments& args);
|
|
Result<void> check_setprop(const BuiltinArguments& args);
|
|
Result<void> check_setrlimit(const BuiltinArguments& args);
|
|
Result<void> check_swapon_all(const BuiltinArguments& args);
|
|
Result<void> check_sysclktz(const BuiltinArguments& args);
|
|
Result<void> check_umount_all(const BuiltinArguments& args);
|
|
Result<void> check_wait(const BuiltinArguments& args);
|
|
Result<void> check_wait_for_prop(const BuiltinArguments& args);
|
|
|
|
} // namespace init
|
|
} // namespace android
|