2023-10-29 15:34:13 +00:00
|
|
|
#!/bin/sh
|
2023-08-12 22:52:59 +01:00
|
|
|
|
|
|
|
help() {
|
|
|
|
echo "Help:"
|
|
|
|
echo " --help -h: Displays this help"
|
|
|
|
echo " -r: Disables Evolution-Desktop at launch"
|
|
|
|
echo " nothing: Enables Evolution-Desktop at launch"
|
|
|
|
}
|
|
|
|
|
2023-10-29 15:34:13 +00:00
|
|
|
if [ "$1" = "" ]; then
|
2023-09-11 07:22:17 +01:00
|
|
|
drunner
|
|
|
|
ln -s /etc/dinit.d/greetd /etc/dinit.d/boot.d/greetd
|
2023-09-12 19:34:30 +01:00
|
|
|
ln -s /etc/dinit.d/evolution-desktop /etc/dinit.d/boot.d/evolution-desktop
|
2023-08-12 22:52:59 +01:00
|
|
|
echo "Evolution-Desktop will now start at launch."
|
2023-10-29 15:34:13 +00:00
|
|
|
elif [ "$1" = "-h" ]; then
|
2023-08-12 22:52:59 +01:00
|
|
|
help
|
2023-10-29 15:34:13 +00:00
|
|
|
elif [ "$1" = "--help" ]; then
|
2023-08-12 22:52:59 +01:00
|
|
|
help
|
2023-10-29 15:34:13 +00:00
|
|
|
elif [ "$1" = "-r" ]; then
|
2023-09-11 07:22:17 +01:00
|
|
|
rm -f /etc/dinit.d/boot.d/greetd
|
2023-09-12 19:34:30 +01:00
|
|
|
rm -f /etc/dinit.d/boot.d/evolution-desktop
|
2023-08-12 22:52:59 +01:00
|
|
|
echo "Evolution-Desktop will no longer start at launch"
|
|
|
|
else
|
|
|
|
echo "Unregonised option. Use --help for help."
|
|
|
|
fi
|