--- 50netcfg 2012-08-06 17:51:59.886967028 -0400 +++ 50netcfg-new 2012-08-06 18:29:21.701178451 -0400 @@ -3,11 +3,21 @@ . /usr/lib/pm-utils/functions suspend_netcfg() { + # Stop net-auto-wireless if it's running + if [ `rc.d list --started net-auto-wireless` ]; then + rc.d stop net-auto-wireless + fi + # Suspend profiles not controlled by net-auto-wireless netcfg all-suspend } resume_netcfg() { + # Resume profiles not controlled by net-auto-wireless netcfg all-resume + # Start net-auto-wireless if it's configured to start at boot + if [ `rc.d list --auto net-auto-wireless` ]; then + rc.d start net-auto-wireless + fi } if type netcfg > /dev/null; then