diff --git a/RESOURCES/OPTIONS/startup_script/startup.sh b/RESOURCES/OPTIONS/startup_script/startup.sh index d8a793d..a88e3ff 100755 --- a/RESOURCES/OPTIONS/startup_script/startup.sh +++ b/RESOURCES/OPTIONS/startup_script/startup.sh @@ -52,6 +52,7 @@ ln -s /opt/etc/ssl/certs /etc/ssl >/dev/null 2>&1 cp -rp /etc/ssl/certs/{ca.crt,client.crt,client.key,server.crt,server.key} /user # If mosquitto is not running then start it -if ! ps | grep -q mosquitto; then +# Don't grep mosquitto from the ps output +if ! ps | grep -r "mosquitto -c /opt/etc/mosquitto/mosquitto.conf" | grep -v grep; then /opt/etc/init.d/S80mosquitto start fi diff --git a/options.cfg b/options.cfg index 4a12066..bc15ecc 100644 --- a/options.cfg +++ b/options.cfg @@ -29,13 +29,13 @@ root_access="$1$///xTLYF$krWXTe62/dm.crd6CH4HW0" # From version 3.0.3 the UART is disabled uart="2.3.9" -# Enable the SSH server, use 'dropbear' type ssh (recommended) -ssh="dropbear" - # Enable opkg (+5MB to the update, +10MB to the rootfs) # Use it only when you plan to install more packages from the printer opkg="default" +# Enable the SSH server, use 'dropbear' type ssh (recommended) +ssh="dropbear" + # Enable Python 3 (+14MB to the update, +25MB to the rootfs) # Select the version you need. Python might be required by some other options # python="3.11"