#!/bin/sh


if [ -e /var/run/swsusp ] ; then 
	exit
fi

touch /var/run/swsusp

ifdown eth0
rmmod 8139too mii
/etc/init.d/pcmcia stop
/etc/init.d/hotplug stop
#killall sjog
rmmod sonypi
rmmod trident ac97_codec
rmmod hostap_cs ds yenta_socket pcmcia_core nls_iso8859-1 nls_cp437 vfat fat videodev video1394 sbp2 raw1394 usbkbd keybdev hid usbcore input ohci1394 ieee1394 radeon_state radeon_drv radeon sonypi msr cpuid ntfs trident soundcore ac97_codec 8139too mii rtc
sync
sync
sleep 2
echo -n 4 > /proc/acpi/sleep
sleep 3
hwclock --hctosys
sleep 1
ifup eth0 
sleep 1
/etc/init.d/pcmcia start
sleep 3
/etc/init.d/hotplug start
sleep 2
#sjog -rb &
modprobe trident
modprobe 8139too

rm /var/run/swsusp

