From 68e15a863cd60677420266b031eab921acaed5a1 Mon Sep 17 00:00:00 2001 From: nestire Date: Tue, 30 Jan 2024 16:23:58 +0100 Subject: [PATCH 1/2] mcu messages stage2 made more clear, add new + old IMEI shown in the end to visualy check --- files/usr/bin/blue-merle-switch-stage2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/files/usr/bin/blue-merle-switch-stage2 b/files/usr/bin/blue-merle-switch-stage2 index 23ab6a4..54a88a4 100644 --- a/files/usr/bin/blue-merle-switch-stage2 +++ b/files/usr/bin/blue-merle-switch-stage2 @@ -34,19 +34,24 @@ sleep 1 new_imsi=$(READ_IMSI) if [[ "$old_imsi" == "$new_imsi" ]]; then - mcu_send_message "WARNING: Old IMSI equals new IMSI." + mcu_send_message "WARNING: Old IMSI equals new IMSI. Did you swap the SIM?" sleep 3 fi - +old_imei=$(READ_IMEI) mcu_send_message "Setting random IMEI" timeout 15 python3 /lib/blue-merle/imei_generate.py -r new_imei=$(READ_IMEI) + if [[ "$old_imei" == "$new_imei" ]]; then mcu_send_message "WARNING: Old IMEI equals new IMEI." sleep 3 else + #FIXME old_imei is not the real old imei because in stage1 its already generated a new one + # so this is a bit missleading but for the prupose of visualy see the change it works + mcu_send_message "IMEI Old:...... ${old_imei}IMEI New:...... ${new_imei}" + sleep 5 mkdir -p /tmp/modem.1-1.2 echo "$new_imei" > /tmp/modem.1-1.2/modem-imei fi From 8f33aeac7625e7c75122b38af041d6e3b86340e6 Mon Sep 17 00:00:00 2001 From: nestire Date: Tue, 27 Feb 2024 17:11:35 +0100 Subject: [PATCH 2/2] add firmware 4.3.9 to supported firmware --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a287e3b..4359144 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=blue-merle -PKG_VERSION:=2.0.0 +PKG_VERSION:=2.0.1 PKG_RELEASE:=$(AUTORELEASE) PKG_MAINTAINER:=Matthias @@ -44,7 +44,7 @@ define Package/blue-merle/preinst if [ -f "/tmp/sysinfo/model" ] && [ -f "/etc/glversion" ]; then echo "You have a `cat /tmp/sysinfo/model`, running firmware version `cat /etc/glversion`." fi - echo "blue-merle has only been tested with GL-E750 Mudi Version 4.3.8." + echo "blue-merle has only been tested with GL-E750 Mudi Versions 4.3.8. and 4.3.9" echo "The device or firmware version you are using have not been verified to work with blue-merle." echo -n "Would you like to continue on your own risk? (y/N): " read answer @@ -67,7 +67,11 @@ define Package/blue-merle/preinst echo Version $$GL_VERSION is supported exit 0 ;; - 4.*) + 4.3.9) + echo Version $$GL_VERSION is supported + exit 0 + ;; + 4.*) echo Version $$GL_VERSION is *probably* supported ABORT_GLVERSION ;;