#!/bin/sh

case "$1" in
     start)
         # CRMS00229648 START
         # Power ON the screen
         # was /usr/sbin/debug/screen color black but this command is not a base command
         /usr/sbin/jpg2fb -c 0x00000000
         # same color as in displaymsg
         # set backlight init level
         /usr/sbin/backlight_init
         # was /usr/sbin/debug/screen on but this command is not a base command
         /usr/sbin/switchdisplay ON
         # CRMS00229648 END

         # crms00260596 START
         # Switch OFF call led
         gpio output 20 0
         # crms00260596 END
         echo "screen switched on"
     ;;
     stop)
         # switch screen off
         /usr/sbin/switchdisplay OFF
         echo "screen switched off"
     ;;
     *)
     echo "Usage $0 {start | stop}" 
     exit 1
     ;;
esac

