This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
backupfrom="/srv/smb/" | |
blockdev=${1:-/dev/sdd1} | |
permunlock=$(pkaction|grep org.freedesktop.udisks2.encrypted-unlock) | |
permmount=$(pkaction|grep org.freedesktop.udisks2.filesystem-mount) | |
if [[ -z "$permunlock" ]] || [[ -z "$permmount" ]]; then | |
echo "enter disk password first, then login password twice" | |
echo "login password prompts can be eliminated via polkit" |