Wpis z mikrobloga

@irondew: ja takie coś kiedyś miałem

#!/bin/sh

# save it as root and mark it executable
# move it to...
# /etc/pm/sleep.d/ (if you still use old init system)
# or
# /usr/lib/systemd/system-sleep/ (if you use systemd)

case $1 in
suspend|hibernate|pre)
nmcli -t nm wwan off
# nmcli -t nm sleep true
;;
resume|thaw|post)
nmcli -t nm wwan on
# nmcli -t nm sleep false
;;
*)
exit 1
;;
esac