I use the FC10. It disabling NIC when falling asleep is carried out by sending a message through Dbus for NetworkManager. But I have NetworkManager is not installed. I want to write your own script to disable the NIC. I created a file 00Network in the directory /etc/pm/sleep.d.
[sleep.d]# cat 00Network #!/bin/sh case "$ 1" in hibernate | suspend) /sbin/ifdown eth0 ;; thaw | resume) /sbin/ifup eth0 ;; esac [sleep.d]# but when you try to put to sleep a laptop, nothing happens [~] ps aux | grep root ............ root 23338 0.0 0.0 2788 1268 ? S 20:45 0:00 /bin/sh /usr/sbin/pm-suspend --quirk-vbemode-restore --quirk-vbe-post root 23364 0.0 0.0 2788 1084 ? S 20:45 0:00 /bin/sh /etc/pm/sleep.d/00Network suspend suspend root 23365 0.1 0.0 5236 1596 ? S 20:45 0:00 /bin/bash /etc/sysconfig/network-scripts/ifdown-eth ifcfg-eth0 root 23410 0.0 0.0 2056 296 ? S 20:45 0:00 ip link set dev eth0 down ............. How do I properly disable/enable NIC without using NetworkManager? PS Excuse me for my bad english _______________________________________________ Pm-utils mailing list Pm-utils@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pm-utils