#!/bin/bash # # /etc/sysconfig/apm-scripts/apmcontinue # by Yidao Cai (cai@neurophys.wisc.edu) # Jan 31, 2001 # # this script fix X-server problem after hibarnation. # works for DHCP # case "$1" in suspend) # bring network down /sbin/ifconfig eth0 down ;; resume) # need to check HOSTNAME to determine which one to bring up # will work on it later /sbin/ifconfig eth0 up /bin/rm -f /var/run/dhcpcd-eth0.pid /sbin/pump -i eth0 /sbin/dhcpcd -t 12 eth0 ;; esac # End