Hi NiLuJe,
thanks for your response.
"Stop" in the sense of: after the expected timeframe the script appears not to proceed - i.e. there is no new image on the kobo. Last entry in nohup.out is long before I reset the device.
Before starting the following script I kill nickel and hindenburg.
One further information: Currently I'm testing this on a Kobo that's still on 3.19.5761 (but 4.20 shows same behaviour).
Code:
#!/bin/sh
echo "Starting Loop .."
echo "calling wdn"
sh wifidown.sh
echo "rmmod dhd"
rmmod dhd
echo "rmmod sdio"
rmmod sdio_wifi_pwr
sleep 5
while [ 1 ]
do
echo ""
echo "Next loop started at $(date) / $(hwclock)"
cat /sys/devices/platform/pmic_battery.1/power_supply/mc13892_bat/capacity > batlevel
# Get a random file to display
echo "Calling Screensaverscript"
filetomove=$(ls -1 wallpaper/*.png | while read x; do echo "$RANDOM:$x"; done | sort -n|cut -d':' -f2| head -1)
echo $filetomove
fbink -g file=./$filetomove,halign=CENTER,valign=CENTER -f
sleep 1
ps -a
fbink "{$(date)}"
free
sleep 5
rtcwake -m mem -s 180
sleep 5
done
Copied the updated usbnet-toggle.sh to my device but get the same error - are there any prerequsites necessary?
Kind Regards
KristianR