AqaraSmartSwitchS1E
AqaraSmartSwitchS1E copied to clipboard
Processes are duplicated
Good afternoon.
After each re-run of the script "install_s1e2ha.sh ", my mqtt processes are duplicated. How can I make that these processes are not duplicated?
I found it in the file "/data/scripts/post_init.sh " 4 identical lines. I deleted the extra lines (I left only one) and everything is ok.
turn out the installation script in install_s1e2ha.sh will add one more run_s1e2ha.sh line to /data/scripts/post_init.sh that will make duplicated processes. To fix it:
chattr -i "/data/scripts/post_init.sh" ... remove duplicated lines in run_s1e2ha.sh chattr +i "/data/scripts/post_init.sh"