#!/bin/sh # Handle HP Omnibook 6000 specific optimizations and kludges # Rob.Russell@Canada.Com # This script is distributed under the license terms of the GNU General # Public License, whichever version the Licensee chooses. PROG="$1" case "$PROG" in suspend) # Stop the PPPoverEthernet subsystem if installed and running if [ -x /etc/rc.d/init.d/pppoe ] ; then ifconfig ppp0 EXITCODE=$? if [ $EXITCODE = 0 ] ; then /etc/rc.d/init.d/pppoe stop fi fi # Bring down the ethernet card ifdown eth0 rmmod 3c59x # Bring down the wireless ethernet card # Lines added for Lucent Orinoco card loaned to me while I # attended http://linuxsymposium.org # ifdown eth1 # rmmod wvlan_cs ;; resume) # Speed up the hard disk hdparm -d1 /dev/hda > /dev/null 2>&1 if [ -h /dev/dvd ] ; then hdparm -d1 /dev/hdc > /dev/null 2>&1 fi # Re-initialize the ethernet card modprobe 3c59x ifup eth0 & # Bring back up the wireless # modprobe wvlan_cs # ifup eth1 & ;; esac