#!/bin/bash sleep 2 if [ $1 = "suspend" ] ; then /etc/init.d/networking stop rmmod soundcore e1000 rmmod usblp visor usbserial hci_usb usb-storage uhci_hcd hid ehci_hcd ubcore e1000 fi if [ $1 = "resume" ] ; then for i in e1000 soundcore usblp visor usbserial hci_usb usb-storage uhci_hcd hid ehci_hcd ubcore ; do modprobe -q $i done /etc/init.d/networking start fi