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

Why Is The IP Not Variable #20

Open
tomhiggins opened this issue Aug 6, 2020 · 3 comments
Open

Why Is The IP Not Variable #20

tomhiggins opened this issue Aug 6, 2020 · 3 comments

Comments

@tomhiggins
Copy link
Owner

Dear lord Tom, in this day and age....hard coding the IP?
For the love of all that is good, fix plez.

@tomhiggins
Copy link
Owner Author

Have the user set it in the config, and each script, notable the m3u playlists and the VLC launcher, read it live.

From Bish-Bash-Bosh

ip="$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')"

@tomhiggins
Copy link
Owner Author

In the PI section these files need to be changed..

  • AnyfestoPI-index.html
  • dhcpdpi.conf
  • dnsmasqpi.conf
  • interfacespi
  • ircd.motd
  • ircdpi.conf
  • kiwiconfig.js
  • startpi.sh
  • stream.m3u

While we are at it the hostname/ssid

  • hostnamepi
  • hostspi
  • ircdpi.conf

@tomhiggins
Copy link
Owner Author

tomhiggins commented Aug 8, 2020

Add to install script in the configs section
For Anyfesto

ip=IpYouWantAnyfestoInstallToHave
grep -RiIl '10.11.99.1' | xargs sed -i 's/search/$ip/g'

or for Localfesto

ip="$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')"
grep -RiIl '10.11.99.1' | xargs sed -i 's/10.11.99.1/$ip/g'

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

No branches or pull requests

1 participant