#!/bin/sh
#
# ioexpander(MMI): reset interrupt mask that might
# be set on startup
#
case "$1" in
   start|restart|reload)
      echo -n "Patching IO Expander : "
      i2cset -f -y 3 0x20 0x4a 0x00 2>/dev/null && 
      i2cset -f -y 3 0x20 0x4b 0x00 2>/dev/null && 
      echo "OK" || echo "IGNORED"
      ;;
   stop)
      ;;
   *)
      echo "Usage: $0 {start|stop|restart|reload}"
      exit 1
esac

exit $?
