Starting br0 device after waking from suspend

Tim ignored_mailbox at yahoo.com.au
Tue Nov 9 21:04:35 UTC 2010


On Wed, 2010-11-10 at 07:20 +1100, Nick Urbanik wrote:
> but when the computer wakes up from sleep, I need
> to do
> sudo ifup br0
> to have the machine get its address from the DHCP server.
> Does anyone have any suggestions towards automating a solution?

Perhaps with a script in:  /etc/pm/sleep.d/

#!/bin/bash
case "$1" in
        thaw|resume)
                /sbin/ifup br0 
                ;;
        *)
                ;;
esac
exit $?

-------------------------------

I do something similar to set hard drive parameters upon wakeup.  The
command line, in the middle, is different (for me).

-- 
[tim at localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.





More information about the users mailing list