antirez / dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices
2.46k stars 1.33k forks source link

Added install/uninstall option #157

Closed Pommaq closed 3 years ago

Pommaq commented 3 years ago

As title says. I think its a simple feature to have and atleast it shouldnt break anything

Pommaq commented 3 years ago

Realized I never explained WHY I set gmap.html inside a define. As of the current state in the master branch the program assumes that gmap.html is inside our current working directory when running it. This is undesirable if you ask me hence im assuming the file will always be inside the source. However some embedded devices might have copied the file somewhere else and is thus functional anyways. So I intend to have the program check the working directory if it couldnt find the html at source.

Pommaq commented 3 years ago

Scratch the last comment. I have made it so the program only checks the location specified in Modes.html_file, this will default to P_FILE_GMAP, which is /srv/gmap.html as of now. The location can be changed by adding "--html_file " as a parameter when running it. I feel this is a pretty sufficent implementation that allows us to easily install the binary.