23 lines
589 B
Plaintext
23 lines
589 B
Plaintext
|
#!/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
|
||
|
ln -s /etc/sv/greetd /etc/runit/runsvdir/default/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/runit/runsvdir/default/greetd
|
||
|
echo "Evolution-Desktop will no longer start at launch"
|
||
|
else
|
||
|
echo "Unregonised option. Use --help for help."
|
||
|
fi
|