-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: create Beacon #878
Core: create Beacon #878
Conversation
no idea of how I closed this -.- |
581d226
to
0b439bc
Compare
ebbc64a
to
f5579c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed in the latest image. as a side-effect, it now handles changes in settings/interfaces |
c7652c0
to
8a6ac89
Compare
exit 1 | ||
) | ||
sed -i "s/#host-name=foo/host-name=blueos-avahi/g" ${AVAHI_DAEMON_CONFIG_PATH} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a bit weird, why are we failing if avahi is not available since is not required for the system to work (since now we have beacon).
Also, the cat
will make all other lines to not work.
The correct would be:
AVAHI_DAEMON_CONFIG_PATH="/etc/avahi/avahi-daemon.conf" | |
AVAHI_HOST_NAME="blueos-avahi" | |
[ ! -d "${AVAHI_DAEMON_CONFIG_PATH}" ] && ( | |
echo "Avahi daemon config file found, changing avahi host name to: ${AVAHI_HOST_NAME}" | |
sed -i "s/#host-name=/host-name=blueos-avahi/g" ${AVAHI_DAEMON_CONFIG_PATH} | |
) || echo "Avahi daemon config file not found in ${AVAHI_DAEMON_CONFIG_PATH}" |
This also remove the old "foo" name to make the command more future proof.
edbf029
to
76acb04
Compare
This is a very configurable mDNS alternative to avahi.
fix #472
fix #360
fix #849
lays the groundwork for #680
image is live at williangalvani/blueos-core:beacon
I'll go through this one more time to tidy up and add comments/logging/better exception handling