Skip to content

Commit

Permalink
Update avahi services
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinelliott committed Nov 16, 2023
1 parent 8d5ce01 commit 1b26f4a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function post_family_tweaks__install_airwaves_os_base() {
#chroot_sdcard ln -sF /opt/airwaves/config/build.config /opt/airwaves/airwaves.config

display_alert "install systemd units" "${EXTENSION}" "info"
run_host_command_logged cp "${EXTENSION_DIR}"/config/templates/avahi-airwaves.service.template "${SDCARD}"/etc/avahi/services/airwaves.service
run_host_command_logged cp "${EXTENSION_DIR}"/config/templates/avahi-api.service.template "${SDCARD}"/etc/avahi/services/airwaves-api.service
run_host_command_logged cp "${EXTENSION_DIR}"/config/templates/avahi-config.service.template "${SDCARD}"/etc/avahi/services/airwaves-config.service
run_host_command_logged cp "${EXTENSION_DIR}"/config/templates/avahi-web.service.template "${SDCARD}"/etc/avahi/services/airwaves-web.service
run_host_command_logged cp "${EXTENSION_DIR}"/config/templates/systemd-airwaves-first-run.service.template "${SDCARD}"/etc/systemd/system/airwaves-first-run.service
chroot_sdcard systemctl --no-reload enable airwaves-first-run.service
run_host_command_logged cp "${EXTENSION_DIR}"/config/templates/systemd-airwaves-manager.service.template "${SDCARD}"/etc/systemd/system/airwaves-manager.service
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Airwaves API on %h</name>
<service protocol="ipv4">
<type>_airwaves._tcp</type>
<subtype>_api._sub._airwaves._tcp</subtype>
<port>82</port>
<txt-record>path=/v1</txt-record>
<txt-record>version=0.0.1</txt-record>
</service>
</service-group>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Airwaves Config on %h</name>
<service protocol="ipv4">
<type>_airwaves._tcp</type>
<subtype>_config._sub._airwaves._tcp</subtype>
<port>81</port>
<txt-record>path=/</txt-record>
<txt-record>version=0.0.1</txt-record>
</service>
</service-group>
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<service-group>
<name replace-wildcards="yes">Airwaves Web on %h</name>
<service protocol="ipv4">
<type>_http._tcp</type>
<subtype>_airwaves._web._http._tcp</subtype>
<type>_airwaves._tcp</type>
<subtype>_web._sub._airwaves._tcp</subtype>
<port>80</port>
<txt-record>path=/</txt-record>
<txt-record>version=0.0.1</txt-record>
Expand Down

0 comments on commit 1b26f4a

Please sign in to comment.