I recently did a setup of a raspberry pi zero w and the pi24-2.2.0.img image. Unfortunately it did not work because of a typo in /usr/lib/fr24/activate-cron.sh. The zero w does not have an ethernet interface. The script checks additionally for a wlan network device, but the result is never put to variable DEV. This leads to not getting a MAC address later. After a quick fix the setup was successful. See the diff below. Probably a correction in the image will help other zero w users.
wahlm
wahlm
Code:
--- activate-cron.sh.org 2020-11-28 11:45:02.101076722 +0000 +++ activate-cron.sh 2020-11-28 12:05:56.241474469 +0000 @@ -14,8 +14,8 @@ fi if [ "${IP}" == "" ]; then - WLAN=`ls /sys/class/net | grep wlan` - IP=`ifconfig ${WLAN} | grep "inet " | awk '{print $2}'` + DEV=`ls /sys/class/net | grep wlan` + IP=`ifconfig ${DEV} | grep "inet " | awk '{print $2}'` fi if [ "${IP}" == "" ]; then