diff --git a/welcome b/welcome index 423256f..d247fc5 100755 --- a/welcome +++ b/welcome @@ -659,15 +659,14 @@ Reisub() { local time=5000 case "$1" in - --enable) - echo 'kernel.sysrq=1' | pkexec tee $file > /dev/null - eos_notification $ICO_INFO normal $time REISUB "REISUB $_COMMONPHRASE_ENABLED" "" - ;; - --disable) - [ -e $file ] && pkexec rm -f $file - eos_notification $ICO_INFO normal $time REISUB "REISUB $_COMMONPHRASE_DISABLED" "" - ;; + --enable) [ -e $file ] || echo 'kernel.sysrq=1' | pkexec tee $file > /dev/null ;; + --disable) [ -e $file ] && pkexec rm -f $file ;; esac + if [ -e $file ] ; then + eos_notification $ICO_INFO normal $time REISUB "REISUB $_COMMONPHRASE_ENABLED" "" + else + eos_notification $ICO_INFO normal $time REISUB "REISUB $_COMMONPHRASE_DISABLED" "" + fi } export -f Reisub