You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Add host and IP."""
line1 = f'/bin/bt_hosts.sh add {host} {ip}'
with open(f'{self.mntLoc}/etc/init.d/bt_daemon-apps.sh', 'r') as f:
contents = f.readlines()
for i, line in enumerate(contents):
if 'openserver' in line:
contents.insert(i + 1, f'\t{line1}\n')
break
with open(f'{self.mntLoc}/etc/init.d/bt_daemon-apps.sh', 'w') as f:
contents = ''.join(contents)
f.write(contents)
print('Editing "/etc/init.d/bt_daemon-apps.sh" done '
f'for host {host}:{ip} ✅')
The add part on the script did that on the start function :
No host added, a break line, and a black screen at reboot on Classe 300 (I was scared, trust me T_T). I tried to connect to SSH, that worked, and found reason of malfunction (I removed the bt_hosts.sh line added, dont need it to work with mqtt).
The text was updated successfully, but these errors were encountered:
Hi,
This part didn't work for me :
The add part on the script did that on the start function :
No host added, a break line, and a black screen at reboot on Classe 300 (I was scared, trust me T_T). I tried to connect to SSH, that worked, and found reason of malfunction (I removed the bt_hosts.sh line added, dont need it to work with mqtt).
The text was updated successfully, but these errors were encountered: