#!/bin/bash

. /tmp/cmdline

#if [ "$HWTYPE" = "AtomBox" ]; then
    echo "led 0 1830000" | /usr/bin/confTool /dev/ilid 0.a/X >/dev/null 2>&1
#fi

for i in ilidloop hfc_4s8s tdmdsp falc56 tdm_dma tdmilid ilidmdm ilid26 tdm_spi tdm_i2c tdm_xbar tdmFpga cfgspc pci2slot; do

        if  lsmod | grep -q ${i} ; then
                if ! rmmod ${i} ; then
                        echo "please reboot to solve this issue!"
                fi
        fi
done

exit 0
