Nightly host file over-writes

General support for the Pi-Star System
Post Reply
W2SJW
Posts: 17
Joined: Fri May 25, 2018 12:12 am

Nightly host file over-writes

Post by W2SJW » Mon Jan 14, 2019 2:03 am

Guys,

I had been told by a few that this had been corrected, but last night I put my brand-new duplex hotspot on my group's HBLink input to the C-Bridge via the 'custom' section of the DMR_Hosts.txt file.

I woke up this morning to find the same issue I had 5 months ago was still in play - the DMR host window had only the IP address in it, and when I looked in the host file, the custom master entry was completely gone.

Is there any way to stop the hosts files from being over-written every night? With the way they've been 'borking' the BrandMeister US masters 'on the regular', I really want to take advantage of the C-Bridge option.

Thanks in advance...

User avatar
MW0MWZ
Site Admin
Posts: 1074
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: Nightly host file over-writes

Post by MW0MWZ » Mon Jan 14, 2019 12:55 pm

Put it in the file in /root, that is used to append to the host files and is the correct way to do this.
Andy

73 de MW0MWZ
http://pistar.uk

W2SJW
Posts: 17
Joined: Fri May 25, 2018 12:12 am

Re: Nightly host file over-writes

Post by W2SJW » Tue Jan 15, 2019 12:53 am

Andy,

Thank you, sir!

I've been editing the one in

Code: Select all

/usr/local/etc/DMR_Hosts.txt
I went in via SSH & saw the ones you just mentioned...

User avatar
MW0MWZ
Site Admin
Posts: 1074
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: Nightly host file over-writes

Post by MW0MWZ » Tue Jan 15, 2019 6:29 pm

Indeed the ones in /usr/local/etc/ are manhandled by the scripts, all the customisation should go in /root versions.

I still have some work to do on the D-Star host files too - I'll get to those real soon.....
Andy

73 de MW0MWZ
http://pistar.uk

wz4sky
Posts: 3
Joined: Wed Oct 30, 2019 5:27 pm

Re: Nightly host file over-writes

Post by wz4sky » Wed Nov 13, 2019 1:51 pm

I have searched the forums, but can't find anything directly relating to YSF updates.

Q. How to stop YSFHosts.txt from being overwritten with nightly updates.

Created and added a /root/YSFHosts.txt and FSCHosts.txt files with my edited versions. Also replaced the ones in /user/local/etc with modified versions. Woke up, it's been overwritten. Was there ever a final resolution for this. Especially with YSF overwrites?

Pi-Star:3.4.17 / Dashboard:20191016

KE7FNS
Posts: 750
Joined: Wed Apr 17, 2019 11:11 pm

Re: Nightly host file over-writes

Post by KE7FNS » Wed Nov 13, 2019 6:38 pm

The only overwrites that are currently processed are:
DCS_Hosts.txt
DMR_Hosts.txt
NXDNHosts.txt
DExtra_Hosts.txt
DPlus_Hosts.txt
P25Hosts.txt

The current scripts don't process the new files you created. You could edit the scripts yourself to make it happen, but eventually a nightly update is going to erase your custom script.

Might want to make a post in feature request and see if Andy will add overrides to YSF.
All views, comments, posts and opinions shared are entirely my own.

BX3ACB
Posts: 8
Joined: Tue Jan 29, 2019 2:44 am

Re: Nightly host file over-writes

Post by BX3ACB » Tue Mar 03, 2020 12:19 am

May I know have any update for /root/YSFHosts.txt ?
Because my friend was build YSF reflector and he want for private use (people who add reflector info on their mmdvm manually) not list on others

So we need to override function for YSFHosts.txt like
Six files locale on /root
DCS_Hosts.txt
DMR_Hosts.txt
NXDNHosts.txt
DExtra_Hosts.txt
DPlus_Hosts.txt
P25Hosts.txt

Thanks

Post Reply