#!/bin/sh

echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 99 ACPID +++++++++++++++++++++++++++++++++++++"
# This temporary simple script perform launch the pseudo acpid function of poweroff event. After add real acpi deamon this script must been removed with driven pseudo acpid script together.

if [ `cat /sys/bdinfo/board_name` = "PicoCoreMX6UL100" ]
then
	# PicoCoreMX6UL100
	echo 22 >/sys/class/gpio/export
else
	# Efus A9X
	echo 48 >/sys/class/gpio/export
fi

/usr/bin/acpid &


