diff options
Diffstat (limited to 'saswall')
-rwxr-xr-x | saswall | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -109,7 +109,11 @@ saswall_restore() saswall_check_or_fallback() { set +e - read -t $SASWALL_CONFIRM_TIMEOUT -p "To confirm changes type yes [ENTER]: " saswall_confirmation + if [ -z "$SASWALL_USE_SYSTEM_ASK_PASSWD" ]; then + read -t $SASWALL_CONFIRM_TIMEOUT -p "To confirm changes type yes [ENTER]: " saswall_confirmation + else + saswall_confirmation=`systemd-ask-password --timeout=$SASWALL_CONFIRM_TIMEOUT "To confirm saswall changes type yes [ENTER]: "` + fi if [ "$saswall_confirmation" != "yes" ]; then echo "no or wrong confirmation received" saswall_restore |