#!/bin/sh
#
# Log pmic modes
#

case "$1" in
  start)
  if [ -d /sys/class/regulator/ ]; then
    logger "PMIC.BUCK1 in $(cat /sys/class/regulator/regulator.4/opmode) mode"
    logger "PMIC.BUCK2 in $(cat /sys/class/regulator/regulator.5/opmode) mode"
    logger "PMIC.BUCK3 in $(cat /sys/class/regulator/regulator.6/opmode) mode"
  fi
	echo "OK"
	;;
  stop)
	;;
  restart|reload)
	;;
  *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit $?
