From f409ce18e8d56ec30e842059c2c74a0d49907ab9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 30 Jan 2016 22:52:26 +0100 Subject: fixed systemd reload and initscript path --- saswall | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'saswall') 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 -- cgit v1.2.3