Follows a forther improvement of the script:

#! /bin/bash
# This file (or a link to it) must be in /lib/systemd/system-sleep/
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895378

echo "script started" | /usr/bin/systemd-cat -t "reset_sky2_afer_suspend"

case "$1" in
        pre)
                true
                ;;
        post)
echo "post sequence started" | /usr/bin/systemd-cat -t "reset_sky2_afer_suspend"
                /sbin/modprobe -r sky2
                /sbin/modprobe -v sky2
echo "post sequence finished" | /usr/bin/systemd-cat -t "reset_sky2_afer_suspend"
                ;;
esac

Reply via email to