Remote HOSTFILE cmd leaves system in RW state

Suggest new features here
Post Reply
KN2TOD
Posts: 268
Joined: Sun Nov 11, 2018 6:36 pm

Remote HOSTFILE cmd leaves system in RW state

Post by KN2TOD »

The invocation of a HOSTFILE command via the Pi-Star Remote facility leaves the system in a RW state for extended periods thereafter. Yes, the system usually returns to an RO state after a while, but the system can remain vulnerable for 10 minutes or more after such a command and runs the risk of getting stuck in RW mode indefinitely.

Suggest that an additional line to return the system to RO status be added to the pistar-remote script following the calls to load the host files:

Code: Select all

os.system(r'/bin/mount -o remount,rw /')
os.system(r'/usr/local/sbin/HostFilesUpdate.sh')
os.system(r'/bin/mount -o remount,ro /')
Post Reply