Skip to content

Commit

Permalink
Merge pull request #28 from nestire/main
Browse files Browse the repository at this point in the history
mcu msg stage2 made more clear, add new + old IMEI shown in the end to visualy check + Firmware 4.3.9 check
  • Loading branch information
muelli authored Apr 25, 2024
2 parents a2770e8 + 8f33aea commit 1aa741f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down Expand Up @@ -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
Expand All @@ -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
;;
Expand Down
9 changes: 7 additions & 2 deletions files/usr/bin/blue-merle-switch-stage2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1aa741f

Please sign in to comment.