#!/bin/sh
SYSCONFIG=/etc/sysconfig
. $SYSCONFIG

: "${attr}Read Hardware Files${default}"
if [ -f $NV_ROOT/.p1t1 ]; then
   # old prototype
   SCREEN_ON=1
   SCREEN_OFF=0
else
   SCREEN_ON=0
   SCREEN_OFF=1
fi

if [ $# -eq 1 ]
	then
	if [ "$1" = "1" -o "$1" = "0" ]
		then
		/usr/bin/gpio output 25 $1
	fi
	if [ "$1" = "ON" ]
		then
		/usr/bin/gpio output 25 $SCREEN_ON
		exit
	fi
	if [ "$1" = "OFF" ]
		then
		/usr/bin/gpio output 25 $SCREEN_OFF
		exit
	fi
fi
