Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/local/etc/rc.local not executed in HMLANGW mode #2338

Closed
not1337 opened this issue Jun 14, 2023 · 6 comments · Fixed by #2447
Closed

/usr/local/etc/rc.local not executed in HMLANGW mode #2338

not1337 opened this issue Jun 14, 2023 · 6 comments · Fixed by #2447
Labels
💡 enhancement-ideas New feature or change request

Comments

@not1337
Copy link

not1337 commented Jun 14, 2023

Describe the issue you are experiencing

/etc/init.d/S98StartAddons exits if HM_MODE != NORMAL, thus not executing any existing /usr/local/etc/rc.local script.

Describe the behavior you expected

/usr/local/etc/rc.local should be executed in all regular operating modes, e.g. NORMAL and HM-LGW.

Steps to reproduce the issue

reboot :-)

What is the version this bug report is based on?

3.69.7.20230506

Which base platform are you running?

rpi3 (RaspberryPi3)

Which HomeMatic/homematicIP radio module are you using?

RPI-RF-MOD

Anything in the logs that might be useful for us?

n/a

Additional information

No response

@not1337 not1337 added the 🐛 bug-report Something isn't working label Jun 14, 2023
@jens-maus
Copy link
Owner

This behaviour (that all rc.XXXX) startup scripts are ignored in HMLANGW mode has been added on purpose. Please elaborate why you need to be able to start any third-party application in HMLANGW mode or why you need that functionality at all, because HMLANGW mode is partly a legacy and not meant to be used to run complex environments, etc.

@not1337
Copy link
Author

not1337 commented Jun 14, 2023

e.g. to switch of the Phy LEDs on a Pi 3B.

@Baxxy13
Copy link
Contributor

Baxxy13 commented Jun 14, 2023

Just uncheck "LED-Nutzung" in normal Mode via Advanced Settings or create...
/usr/local/etc/config/disableLED
/usr/local/etc/config/disableOnboardLED
...manually.

That turns off all LED's even in HMLGW-Mode.

@jens-maus
Copy link
Owner

That turns off all LED's even in HMLGW-Mode.

If I understood it correctly @not1337 wants to turn of the LEDs of the Ethernet ports which is not performed with the status files you mentioned. For this either the /boot/config.txt has to be modified or a special tool have to be used to switch of even the LEDs of the Ethernet port of a RaspberryPi.

@not1337
Copy link
Author

not1337 commented Jun 30, 2023

As a suggestion, why not execute /usr/local/etc/rc.langw when in lan gateway mode? This would keep things separate from the regular rc.local and make clear that this script is only for lan gateway mode.

@hotroot
Copy link

hotroot commented Aug 8, 2023

Please elaborate why you need to be able to start any third-party application in HMLANGW mode or why you need that functionality at all, because HMLANGW mode is partly a legacy and not meant to be used to run complex environments, etc.

I‘m using my LAN-Gateway via WLAN and to get al stable connection between my RaspberryMatic CCU and the RaspberryMatic LAN Gateway I need to disable Wi-Fi Power Save in the LAN-Gateway via iw wlan0 set power_save off
Without this command the connection is very unstable. After executing this command the connection is stable.

@jens-maus jens-maus added this to the next release milestone Sep 26, 2023
@jens-maus jens-maus added 💡 enhancement-ideas New feature or change request and removed 🐛 bug-report Something isn't working labels Sep 26, 2023
jens-maus added a commit that referenced this issue Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement-ideas New feature or change request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants