Hi
I am building openwrt image with coova chilli disabled at startup.
while i have this script in /build_directory/files/hotplug.d/ntp/90-chilli
which is
#!/bin/sh
/etc/init.d/chilli start
after upgrade i get this on serial console.
Syntax: /etc/init.d/chilli [command]
Available commands:
start Start the service
stop Stop the service
restart Restart the service
reload Reload configuration files (or restart if service does not implement reload)
enable Enable service autostart
disable Disable service autostart
enabled Check if service is started on boot
running Check if service is running
status Service status
trace Start with syscall trace
info Dump procd service info
i am doing this because i need to wait until ntp sync date and time, so chilli starts with correct date/time.
it was working with me before i was using openwrt-22.03.0
now with 22.03.5 and 23.05.2 the builded image gives this out to the console.
and chilli won't start.
Any Idea ?
i disable chilli startup by commenting out START=90 from /build_directory/feeds/packages/net/coova-chilli/files/chilli.init
this will give you enough 60 sec time for things to settle down
and it will not stop any other startup sequence because cmd is running in background
furthermore, you will have /tmp/logxxxx to see what happened on startup
Syntax: /etc/init.d/chilli [command]
Available commands:
start Start the service
stop Stop the service
restart Restart the service
reload Reload configuration files (or restart if service does not implement reload)
enable Enable service autostart
disable Disable service autostart
enabled Check if service is started on boot
running Check if service is running
status Service status
trace Start with syscall trace
info Dump procd service info
the thing is, i noticed that when i only edit enter empty line to the 90-chilli file and save it. and reboot, it works as expected..
that is certainly related to text editor i am using in ubuntu. maybe encoding issue.
i will copy it to build dir and i am pretty confident it is the solution.
that's it...
i never had an issue with ubuntu text editor before.
found out the the end of line is CRLF not LF as Unix-style line endings
i do not know how this happened.
Hidden chars (including Linux/windows cr/lf differences) is surprisingly common, and can be hard to detect/recognise. And some file transfer tools even try to help you by adding/removing cr automatically...
The nastiest example of a hidden char that I have seen, is hidden char entered into u-boot env variable name, destroying sysupgrade...
i think this could trigger chilli to restart and kick out authenticated users.
it is best to use start command. as executing start again while it is already started.
it won't kick no body, simply would do nothing.