anyfesto icon indicating copy to clipboard operation
anyfesto copied to clipboard

Why Is The IP Not Variable

Open tomhiggins opened this issue 5 years ago • 3 comments
trafficstars

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

tomhiggins avatar Aug 06 '20 18:08 tomhiggins

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 avatar Aug 06 '20 18:08 tomhiggins

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 avatar Aug 07 '20 02:08 tomhiggins

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'

tomhiggins avatar Aug 08 '20 22:08 tomhiggins