#!/bin/sh set -e if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then case "$1" in pre) /sbin/wpa_cli suspend ;; post) /sbin/wpa_cli resume ;; esac fi