Skip to content
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

[FBW] Avoid duplicated donwloads, create networks and get hostname #506

Merged
merged 18 commits into from
Apr 22, 2019

Conversation

gmarcos87
Copy link
Contributor

Avoid duplicated downloads

Before it downloaded all the configurations from the associated devices each time it configured the network. Now it does it once per mac address.

Get remote hostname

Obtains the remote hostname the moment it gets the configurations and saves the data in the file.

Set username in create and join network functions

The user can input a hostname so that it changes the moment the new network configuration is set.

@gmarcos87 gmarcos87 requested review from nicopace and G10h4ck and removed request for nicopace April 21, 2019 19:21
@nicoechaniz nicoechaniz self-requested a review April 21, 2019 19:27
-- Start sharing lime-defaults and reboot
share_defualts()
remove_lock_file()
os.execute("reboot 0")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what the 0 after reboot does?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix typo in 50582c1

@@ -25,6 +25,7 @@ define Package/$(PKG_NAME)/install
$(CP) ./files/* $(1)/
@chmod a+x $(1)/usr/libexec/daemon/lime-fbw
@chmod a+x $(1)/etc/init.d/ubus-lime-fbw
@chmod a+x $(1)/www/cgi-bin/hostname
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIR some makefile macro should be used instead con plain chmod to install executables @spiccinini do you remember if it is like that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, INSTALL_BIN macro does chmod +x (equivalent to chdmo a+x)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package is using "the trick" using CP ./files/* so using INSTALL_* macros goes against that practicity. I don't know if there is a preferred way. I see mixed uses in other packages (from openwrt and libremesh).

Copy link
Member

@G10h4ck G10h4ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments inline

@spiccinini
Copy link
Contributor

This fixes #101 ?

@gmarcos87
Copy link
Contributor Author

yes @spiccinini close #101

Copy link
Member

@G10h4ck G10h4ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still one missing new line at EOF

@gmarcos87 gmarcos87 merged commit 887b8a0 into master Apr 22, 2019
@spiccinini spiccinini deleted the fbw-avoid-duplicated-donwloads branch January 31, 2020 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants