Skip to content

Commit

Permalink
Merge pull request #129 from ski7777/fix-reboot
Browse files Browse the repository at this point in the history
Fix reboot
  • Loading branch information
rkunze authored Sep 15, 2018
2 parents c82b4df + 9e7e643 commit 26207ac
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions board/fischertechnik/TXT/rootfs/sbin/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@ if [ "$(whoami)" != "root" ]; then
exit 1
fi
/bin/launcher-msg "Rebooting..."
echo +15 > /sys/class/rtc/rtc1/wakealarm
exec /bin/busybox poweroff
case $(cat /rom/etc/sysversion) in
[0123].*|4.[0123].*|4.4.[012]*)
# normal reboot hangs on firmware versions < 4.4.3
# workaround: set a short rtc wakeup timer and power off instead
echo +15 > /sys/class/rtc/rtc1/wakealarm
exec /bin/busybox poweroff
;;
*)
exec /bin/busybox reboot
;;
esac

0 comments on commit 26207ac

Please sign in to comment.