diff --git a/meta-ohos-blueprints/recipes-core/systemd/files/80-wireless.network b/meta-ohos-blueprints/recipes-core/systemd/files/80-wireless.network new file mode 100644 index 0000000000000000000000000000000000000000..15c343afc070a2f0f897a8cae55580814a79a985 --- /dev/null +++ b/meta-ohos-blueprints/recipes-core/systemd/files/80-wireless.network @@ -0,0 +1,13 @@ +[Match] +Name=wlan0 + +[Network] +Address=172.16.47.1/24 +DHCPServer=true +IPMasquerade=true + +[DHCPServer] +PoolOffset=100 +PoolSize=50 +EmitDNS=yes +DNS=9.9.9.9 8.8.8.8 diff --git a/meta-ohos-blueprints/recipes-core/systemd/systemd-conf_%.bbappend b/meta-ohos-blueprints/recipes-core/systemd/systemd-conf_%.bbappend new file mode 100644 index 0000000000000000000000000000000000000000..9decbc87f75e18ec56f2cd6836bed9de8611347a --- /dev/null +++ b/meta-ohos-blueprints/recipes-core/systemd/systemd-conf_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI_append = "file://80-wireless.network" + +do_install_append() { + install -D -m0644 ${WORKDIR}/80-wireless.network ${D}${systemd_unitdir}/network/ +}