2017-06-14 15:40:56 |
Tony Espy |
description |
When suspending/resuming, systemd runs the script /lib/systemd/system-sleep/wpasupplicant, but fails if the wpa-supplicant snap is installed. This happens because the script tries to run "/sbin/wpa_cli" instead of the client included in the snap, "wpa-supplicant.wpa-cli". This is the content of the script:
$ cat /lib/systemd/system-sleep/wpasupplicant
#!/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 |
When suspending/resuming, systemd runs the script /lib/systemd/system-sleep/wpasupplicant, but fails if the wpa-supplicant snap is installed. This happens because the script tries to run "/sbin/wpa_cli" instead of the client included in the snap, "wpa-supplicant.wpa-cli". This is the content of the script:
$ cat /lib/systemd/system-sleep/wpasupplicant
#!/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
The version of wpa-supplicant snap is: 2.4-1, r12
The version of core snap is: |
|