mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 11:30:56 -05:00
Merge pull request #10 from muelli/v4-bail
hard fail on v4 and soft-fail on v3 of the firmwares
This commit is contained in:
commit
09d2f8c087
36
Makefile
36
Makefile
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=blue-merle
|
PKG_NAME:=blue-merle
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.1.0
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Matthias <matthias@srlabs.de>
|
PKG_MAINTAINER:=Matthias <matthias@srlabs.de>
|
||||||
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/blue-merle
|
define Package/blue-merle
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEPENDS:=+bash +coreutils-shred +python3 +python3-pyserial +patch
|
DEPENDS:=gl-ui gl-e750-mcu +bash +coreutils-shred +python3 +python3-pyserial +patch
|
||||||
TITLE:=Anonymity Enhancements for GL-E750 Mudi
|
TITLE:=Anonymity Enhancements for GL-E750 Mudi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -96,13 +96,27 @@ define Package/blue-merle/preinst
|
|||||||
}
|
}
|
||||||
|
|
||||||
if grep -q "GL.iNet GL-E750" /proc/cpuinfo; then
|
if grep -q "GL.iNet GL-E750" /proc/cpuinfo; then
|
||||||
if grep -q -w "3.215" /etc/glversion; then
|
GL_VERSION=$$(cat /etc/glversion)
|
||||||
CHECK_MCUVERSION
|
case $$GL_VERSION in
|
||||||
echo "Device is supported, installing blue-merle."
|
4.*)
|
||||||
exit 0
|
echo Version $$GL_VERSION is not supported
|
||||||
else
|
exit 1
|
||||||
ABORT_GLVERSION
|
;;
|
||||||
fi
|
3.215)
|
||||||
|
echo Version $$GL_VERSION is supported
|
||||||
|
CHECK_MCUVERSION
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
3.*)
|
||||||
|
echo Version $$GL_VERSION is *probably* supported
|
||||||
|
ABORT_GLVERSION
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo Unknown version $$GL_VERSION
|
||||||
|
ABORT_GLVERSION
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
CHECK_MCUVERSION
|
||||||
else
|
else
|
||||||
ABORT_GLVERSION
|
ABORT_GLVERSION
|
||||||
fi
|
fi
|
||||||
@ -130,8 +144,8 @@ define Package/blue-merle/postrm
|
|||||||
mv /usr/bin/switchaction.orig /usr/bin/switchaction
|
mv /usr/bin/switchaction.orig /usr/bin/switchaction
|
||||||
mv /usr/bin/switch_queue.orig /usr/bin/switch_queue
|
mv /usr/bin/switch_queue.orig /usr/bin/switch_queue
|
||||||
|
|
||||||
rm /tmp/sim_change_start
|
rm -f /tmp/sim_change_start
|
||||||
rm /tmp/sim_change_switch
|
rm -f /tmp/sim_change_switch
|
||||||
endef
|
endef
|
||||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user