Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Add check support for Pi Zero WH (#155)
Browse files Browse the repository at this point in the history
Here's feedback of my Pi Zero WH when execute `sudo cat /proc/cpuinfo`:
```
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 997.08
Features	: half thumb fastmult vfp edsp java tls
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		: 000000002da6cad6
```
BTW, `c` is lowercase instead of `C`. I don't know it is the same as other models of Pi Zero.
  • Loading branch information
cxlwill authored and ludeeus committed Apr 3, 2018
1 parent 2cfa577 commit a69c9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/usr/local/bin/hassbian-config
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function raspberry_pi_zero_check {
## Start check for Raspberry Pi Zero
if [ "$FORCE" != "true" ]; then
REVCODE=$(sudo cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^ *//g' | sed 's/ *$//g')
if [ "$REVCODE" = "90092" ] || [ "$REVCODE" = "90093" ] || [ "$REVCODE" = "0x9000C1" ]; then
if [ "$REVCODE" = "90092" ] || [ "$REVCODE" = "90093" ] || [ "$REVCODE" = "0x9000C1" ] || [ "$REVCODE" = "9000c1" ]; then
if [[ "$1" =~ ^(mosquitto|homebridge|cloud9)$ ]]; then
echo "This suite can't be installed on Raspberry Pi Zero..."
exit 0
Expand Down

0 comments on commit a69c9e7

Please sign in to comment.