#!/bin/bash # # /etc/sysconfig/apm-scripts/apmcontinue # Created on Jan. 31, 2001 by Yidao Cai (cai@neurophys.wisc.edu) # Last modified on Feb. 24, 2001 # # this script fix X-server problem after hibarnation, based on the # network it is on (local or DHCP) # case "$1" in suspend) # bring network down /sbin/ifconfig eth0 down ;; resume) # need to check HOSTNAME to determine which one to bring up if [ $HOSTNAME == "a21p" ]; then /sbin/ifup eth0-cln else /sbin/ifconfig eth0 up if [ -f /var/run/dhcpcd-eth0.pid ]; then /bin/rm -f /var/run/dhcpcd-eth0.pid fi /sbin/pump -i eth0 /sbin/dhcpcd -t 12 eth0 fi ;; esac # End