Skip to content

Commit

Permalink
[welcome] fixed the message for enabling REISUB
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-192 committed Dec 9, 2024
1 parent f2a4fb0 commit 11b8551
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions welcome
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 11b8551

Please sign in to comment.