Skip to content

Commit 69e87f9

Browse files
committed
Merge branch 'devel' into devel_stretch
2 parents 7275f19 + a9ef7d7 commit 69e87f9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/opt/raspberrypi-ua-netinst/install.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,15 @@ variables_set_defaults() {
165165
led_sos() {
166166
local led0=/sys/class/leds/led0 # Power LED
167167
local led1=/sys/class/leds/led1 # Activity LED
168-
local led_on=1
169-
local led_off=0
168+
local led_on
169+
local led_off
170170

171171
# Setting leds on and off works the other way round on Pi Zero and Pi Zero W
172172
# Also led0 (the only led on the Zeros) is the activity led
173-
if [ "${rpi_hardware_version:0:4}" = "Zero" ]; then
173+
if [ "${rpi_hardware_version:0:4}" != "Zero" ]; then
174+
led_on=1
175+
led_off=0
176+
else
174177
led_on=0
175178
led_off=1
176179
fi

0 commit comments

Comments
 (0)