Init script for openwisp-config

openwisp-config 1.0.1-2 is fine.

# grep PROG= /etc/init.d/openwisp_config
PROG="/usr/sbin/openwisp_config"
# ll /usr/sbin/openwisp_config
-rwxr-xr-x    1 root     root         23714 Sep 22  2022 /usr/sbin/openwisp_config

But with 1.1.0-1, PROG is instead /usr/sbin/openwisp-config which doesn't exist!

root@OpenWrt:~# opkg install openwisp-config
Installing openwisp-config (1.1.0-1) to root...
...<all the dependencies>...
Configuring openwisp-config.
openwisp: OpenWISP config agent started
root@OpenWrt:~# grep PROG= /etc/init.d/openwisp_config
PROG="/usr/sbin/openwisp-config"
root@OpenWrt:~# ll /usr/sbin/openwisp-config
ls: /usr/sbin/openwisp-config: No such file or directory
root@OpenWrt:~# logread | grep openwisp
Wed Oct 16 12:55:26 2024 daemon.info openwisp: OpenWISP config agent started
Wed Oct 16 12:55:51 2024 daemon.info procd: Instance openwisp_config::instance1 s in a crash loop 6 crashes, 0 seconds since last crash

How does one report a packaging bug with an OpenWRT package?

tag maintainer, that not responding add recent regular commiters

1 Like

Thanks, looks like somebody beat me to it!

My temporary solution until this bug is fixed is:

ln -s /usr/sbin/openwisp_config /usr/sbin/openwisp-config
1 Like

Going to send a fix tomorrow. In the meantime use one of the builds from downloads.openwisp.io.

1 Like

Fixes for the new version of the packages are ready for review:

Thanks for bringing this up!