https://bugzilla.novell.com/show_bug.cgi?id=749031
https://bugzilla.novell.com/show_bug.cgi?id=749031#c9
--- Comment #9 from Li Bin
The attachment is not quite correct.
I followed Bin Li's leads, adapted the script and did a suspend/resume test => OK.
The body of the script should have this in it :
============================================================================ . "${PM_FUNCTIONS}"
# Sanity checks [ -x /etc/init.d/network ] || exit $NA [ -r /etc/sysconfig/network/config ] && . /etc/sysconfig/network/config [ -r /etc/sysconfig/network/scripts/functions ] && . /etc/sysconfig/network/scripts/functions
command_exists dhcp_interfaces || exit $NA
# NetworkManager is handled by 55NetworkManager, so skip this script if # nm is enabled in sysconfig ... [ x"${NETWORKMANAGER}" = x"yes" ] && exit $NA # ... or if it is running command_exists nm_running && nm_running && exit $NA
case "$1" in hibernate|suspend) savestate "dhcp_interfaces" "`dhcp_interfaces`" service network stop-all-dhcp-clients ;; thaw|resume) for interface in `restorestate "dhcp_interfaces"`; do service network restart ${interface} done ;; *) exit $NA ;; esac
============================================================================
Thanks for the quick reaction.
Thanks for your feedback. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.