• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15## Install netmanager_base.rc/netmanager_base.rc to /system/etc/init
16ohos_prebuilt_etc("netmanager_base.rc") {
17  source = "netmanager_base.cfg"
18  relative_install_dir = "init"
19  part_name = "netmanager_base"
20  subsystem_name = "communication"
21}
22
23## Install netsysnative.rc/netsysnative.rc to /system/etc/init
24ohos_prebuilt_etc("netsysnative.rc") {
25  source = "netsysnative.cfg"
26  relative_install_dir = "init"
27  part_name = "netmanager_base"
28  subsystem_name = "communication"
29}
30
31## Install resolv.conf to /system/etc
32ohos_prebuilt_etc("resolv.conf") {
33  source = "resolv.conf"
34  part_name = "netmanager_base"
35  subsystem_name = "communication"
36}
37
38## Install xtables.lock to /system/etc
39ohos_prebuilt_etc("xtables.lock") {
40  source = "xtables.lock"
41  part_name = "netmanager_base"
42  subsystem_name = "communication"
43}
44
45## Install resolv.conf to /system/etc
46ohos_prebuilt_etc("netdetectionurl.conf") {
47  source = "netdetectionurl.conf"
48  part_name = "netmanager_base"
49  subsystem_name = "communication"
50}
51