#!/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 nls_iso8859-1 nls_cp437 vfat fat 
rmmod mousedev input sr_mod serial isa-pnp
rmmod soundcore rtc
rmmod radeon
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 radeon
#modprobe 8139too
rm /var/run/swsusp

