wireless - why does my script not run on wakeup - Ask Ubuntu
i've followed istructions found on run script on wakeup? following: have asus zenbook , since upgraded 16.04, wifi stays disconnected on resume. wrote script can execute manually after wakeup (and entering root pewd) , hooks wifi adapter network. script looks like:
$ cat wifi-resume.sh systemctl restart network-manager.service so, following instructions created script in /usr/lib/pm-utils/sleep.d/ called 96wifi-resume looks like:
# cat 96wifi-resume #!/bin/sh # on asus zenbook, script used restart wifi on resume. # date 11/04/2016 ron eggler [ -f /bin/systemctl ] || exit $na case "$1" in hibernate|suspend) exit $na ;; thaw|resume) systemctl restart network-manager.service ;; *) exit $na ;; esac permissions set -rwxr-xr-x 1 root root still not seem work, why not, doing wrong here?
edit 1
however, have replaced exit $nas exit 0 , still doesn't seem work correctly, however, when call :/usr/lib/pm-utils/sleep.d# ./96wifi-resume resume shell, seems work expected
Comments
Post a Comment