This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/evolution-desktop/files/bin/enabledesktop

24 lines
588 B
Bash
Executable File

#!/bin/bash
help() {
echo "Help:"
echo " --help -h: Displays this help"
echo " -r: Disables Evolution-Desktop at launch"
echo " nothing: Enables Evolution-Desktop at launch"
}
if [[ "$1" = "" ]]; then
drunner
ln -s /etc/dinit.d/greetd /etc/dinit.d/boot.d/greetd
echo "Evolution-Desktop will now start at launch."
elif [[ "$1" = "-h" ]]; then
help
elif [[ "$1" = "--help" ]]; then
help
elif [[ "$1" = "-r" ]]; then
rm -f /etc/dinit.d/boot.d/greetd
echo "Evolution-Desktop will no longer start at launch"
else
echo "Unregonised option. Use --help for help."
fi