Starting through KSM, KOReader screen stays upside down despite the patch
Code:
# somewhere at the beginning, does not matter where exactly
echo 0 > /sys/class/graphics/fb0/rotate
cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/rotate
#before "exit $RETURN_VALUE"
echo 2 > /sys/class/graphics/fb0/rotate
cat /sys/class/graphics/fb0/rotate > /sys/class/graphics/fb0/rotate