Monday, February 4, 2013

Script I used for suspending wireless - bluetooth and wifi - on Sony Vaio VPCS116FA

Here is a script that I used for disabling / enabling wireless on my laptop during suspend/wakeup

[root]# cat > /etc/pm/sleep.d/wireless <<EOF

#!/bin/bash

. /usr/lib/pm-utils/functions

case "$1" in
    hibernate|suspend)
                rfkill block all
                ;;
    thaw|resume)
                rfkill unblock all
                ;;
    *)
                ;;
esac

exit

EOF
[root]# chmod 755 /etc/pm/sleep.d/wireless

2 comments:

  1. I have been searching for puppet module for installing and configuring pgpool and you have just solved my problem by providing me the required program.

    ReplyDelete