summaryrefslogtreecommitdiff
path: root/saswall
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-30 22:52:26 +0100
committerChristian Pointner <equinox@spreadspace.org>2016-01-30 22:52:26 +0100
commitf409ce18e8d56ec30e842059c2c74a0d49907ab9 (patch)
treed17b2536e585cb86d4414c239da4828ba7951745 /saswall
parentupdated debian changelog (diff)
fixed systemd reload and initscript path
Diffstat (limited to 'saswall')
-rwxr-xr-xsaswall6
1 files changed, 5 insertions, 1 deletions
diff --git a/saswall b/saswall
index 1027b6d..69232f8 100755
--- a/saswall
+++ b/saswall
@@ -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