diff options
author | John Klug <john.klug@multitech.com> | 2020-08-18 18:56:13 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-08-18 18:56:13 -0500 |
commit | ffe88d48f6ab90ca7a0e62d691860a2f9d126cb5 (patch) | |
tree | f032113b2a434c321317a34157b9f2b35be941d1 /recipes-connectivity/hostapd | |
parent | a7eb51235111936ffd805dbbbf97d00e7dc91402 (diff) | |
download | meta-mlinux-ffe88d48f6ab90ca7a0e62d691860a2f9d126cb5.tar.gz meta-mlinux-ffe88d48f6ab90ca7a0e62d691860a2f9d126cb5.tar.bz2 meta-mlinux-ffe88d48f6ab90ca7a0e62d691860a2f9d126cb5.zip |
Put configuration files into hostadp-cfg
Diffstat (limited to 'recipes-connectivity/hostapd')
-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 } |