toggle-tails-shutdown-on-media-removal.sh 204 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh
set -e

case "$1" in
    pre)
        systemctl stop tails-shutdown-on-media-removal.service
        ;;
    post)
        systemctl start tails-shutdown-on-media-removal.service
        ;;
esac