diff options
author | John Klug <john.klug@multitech.com> | 2020-08-18 18:56:13 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-11-12 09:25:58 -0600 |
commit | fce7feae79990506c86be483d6eab7920a03228f (patch) | |
tree | f032113b2a434c321317a34157b9f2b35be941d1 | |
parent | 63827e7985202e2f657f4e95a3f591dd62ecdea1 (diff) | |
download | meta-mlinux-fce7feae79990506c86be483d6eab7920a03228f.tar.gz meta-mlinux-fce7feae79990506c86be483d6eab7920a03228f.tar.bz2 meta-mlinux-fce7feae79990506c86be483d6eab7920a03228f.zip |
Put configuration files into hostadp-cfg
-rw-r--r-- | recipes-connectivity/hostapd/hostapd_%.bbappend | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/recipes-connectivity/hostapd/hostapd_%.bbappend b/recipes-connectivity/hostapd/hostapd_%.bbappend index 3d8ad14..3c69a72 100644 --- a/recipes-connectivity/hostapd/hostapd_%.bbappend +++ b/recipes-connectivity/hostapd/hostapd_%.bbappend @@ -22,28 +22,41 @@ do_install() { install -m 0755 ${B}/hostapd_cli ${D}${sbindir} install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd install -m 755 ${WORKDIR}/default ${D}${sysconfdir}/default/hostapd - + install -m 644 -D ${WORKDIR}/cfg80211.conf ${D}${sysconfdir}/modprobe.d/cfg80211.conf - install -d ${D}/usr/share/hostap-daemon - install -m 0444 ${WORKDIR}/WiFi-SSID ${D}/usr/share/hostap-daemon/WiFi-SSID.patch + install -d ${D}/usr/share/hostapd + install -m 0444 ${WORKDIR}/WiFi-SSID ${D}/usr/share/hostapd/WiFi-SSID.patch install -d ${D}/usr/local/bin install -m 0744 ${WORKDIR}/setchan ${D}/usr/local/bin } +# ${PN}-extra sets a unique SSID name, and has a channel setting utility PACKAGES =+ "${PN}-extra ${PN}-cfg" RDEPENDS_${PN}-extra = "${PN}-cfg bash" -FILES_${PN}-extra = "/usr/local/bin/* /usr/share/hostap-daemon/WiFi-SSID.patch" +FILES_${PN}-extra = "/usr/local/bin/* /usr/share/hostapd/WiFi-SSID.patch" + +# initscripts are unique to mLinux so put into ${PN}-cfg +INITSCRIPT_NAME_${PN}-cfg = "hostapd" +SYSTEMD_SERVICE_${PN}-cfg = "hostapd.service" +SYSTEMD_AUTO_ENABLE_${PN}-cfg = "disable" +INITSCRIPT_PACKAGES = "${PN}-cfg" +SYSTEMD_PACKAGES = "${PN}-cfg" +INITSCRIPT_NAME = "" +SYSTEMD_SERVICE_${PN} = "" +SYSTEMD_AUTO_ENABLE_${PN} = "" +SYSTEMD_SERVICE_${PN}-cfg = "hostapd.service" +SYSTEMD_AUTO_ENABLE_${PN}-cfg = "disable" # mLinux files FILES_${PN}-cfg = "/etc/init.d/hostapd /etc/default/hostapd /etc/hostapd.conf" -pkg_postinst_${PN}-bt-name() { +pkg_postinst_${PN}-extra() { cd /$D - patch -Np1 < $D/usr/share/hostap-daemon/WiFi-SSID.patch + patch -Np1 < $D/usr/share/hostapd/WiFi-SSID.patch } -pkg_prerm_${PN}-bt-name() { +pkg_prerm_${PN}-extra() { cd /$D - patch -Rp1 < $D/usr/share/hostap-daemon/WiFi-SSID.patch + patch -Rp1 < $D/usr/share/hostapd/WiFi-SSID.patch } |