1# Copyright (c) 2021-2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13import("//build/ohos.gni") 14 15ohos_prebuilt_etc("netmanager_trust") { 16 source = "netmanager_trust.json" 17 module_install_dir = "profile" 18 part_name = "netmanager_base" 19 subsystem_name = "communication" 20} 21 22ohos_prebuilt_etc("netsysnative_trust") { 23 source = "netsysnative_trust.json" 24 module_install_dir = "profile" 25 part_name = "netmanager_base" 26 subsystem_name = "communication" 27} 28 29## Install netmanager_base.rc/netmanager_base.rc to /system/etc/init 30ohos_prebuilt_etc("netmanager_base.rc") { 31 source = "netmanager_base.cfg" 32 relative_install_dir = "init" 33 part_name = "netmanager_base" 34 subsystem_name = "communication" 35} 36 37## Install netsysnative.rc/netsysnative.rc to /system/etc/init 38ohos_prebuilt_etc("netsysnative.rc") { 39 source = "netsysnative.cfg" 40 relative_install_dir = "init" 41 part_name = "netmanager_base" 42 subsystem_name = "communication" 43} 44 45## Install resolv.conf to /system/etc 46ohos_prebuilt_etc("resolv.conf") { 47 source = "resolv.conf" 48 part_name = "netmanager_base" 49 subsystem_name = "communication" 50} 51 52## Install xtables.lock to /system/etc 53ohos_prebuilt_etc("xtables.lock") { 54 source = "xtables.lock" 55 part_name = "netmanager_base" 56 subsystem_name = "communication" 57} 58 59## Install resolv.conf to /system/etc 60ohos_prebuilt_etc("netdetectionurl.conf") { 61 source = "netdetectionurl.conf" 62 part_name = "netmanager_base" 63 subsystem_name = "communication" 64} 65