if grep -q "state:invertActive = yes" "/mnt/onboard/.kobo/nightmode.ini" ; then fbink -h .... else fbink .... fi