#! /bin/sh
# System is going down remove loaded modules. Removig the power module
# after the power off flag has been set will power the EV3 off

rmmod d_ui
# d_analog removes buffering for linux prompt
rmmod d_analog
# d_uart must be removed after d_analog
rmmod d_uart
rmmod d_pwm
rmmod d_sound
rmmod d_iic
sync

