neo/linux/bin/installiere_neo/installiere_neo.2
pascal 5309112d20 Änderung der Schreibweise NEO→Neo
git-svn-id: https://svn.neo-layout.org@1766 b9310e46-f624-0410-8ea1-cfbb3a30dc96
2009-03-26 06:46:50 +00:00

61 lines
1.7 KiB
Groff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

profile_neo() {
cat <<PROFIL
# Neo: # Neo Tastaturbelegung
PATH=\$PATH:$inst_dir/ # Neo Tastaturbelegung
export PATH # Neo Tastaturbelegung
asdf # Neo Tastaturbelegung; mit einem # am Zeilenanfang bleibt QWERTZ das Standardlayout, sonst ist es Neo
PROFIL
}
profile_qwertz() {
cat <<PROFIL
# Neo: # Neo Tastaturbelegung
PATH=\$PATH:$inst_dir/ # Neo Tastaturbelegung
export PATH # Neo Tastaturbelegung
#asdf # Neo Tastaturbelegung; mit einem # am Zeilenanfang bleibt QWERTZ das Standardlayout, sonst ist es Neo
PROFIL
}
neo_path() {
cat <<Neo_PATH
PATH=$PATH:$inst_dir
export PATH
echo "Die Belegung wird nun auf Neo geändert…"
asdf
Neo_PATH
}
# *** main program ***
clear
echo
echo " *** Neo Ergonomie und Zeichenvielfalt ***"
echo
echo
echo " Ihr System wird untersucht…"
echo
# check for an existing neo configuration
if [ -f "${Neo_CONFIG}" ]; then
. "${Neo_CONFIG}" || die "Failed to source ${Neo_CONFIG}"
elif [ -f "${HOME}"/.neorc ]; then
. "${HOME}"/.neorc || die "Failed to source ${HOME}/.neorc"
elif [ -f /etc/neo.conf ]; then
. /etc/neo.conf || die "Failed to source /etc/neo.conf"
else
# no configuration file found → install Neo
install_options
neo_path > $inst_dir/starte_neo
echo
echo -e "Um Neo jetzt zu aktivieren geben Sie bitte »${green}. $inst_dir/starte_neo${normal}« (mit Punkt und Leerzeichen!) ein."
echo -e "Danach oder nach dem nächsten Login kann jederzeit mit ${green}asdf${normal} von QWERTZ zu Neo und mit ${green}uiae${normal} von Neo zu QWERTZ gewechselt werden."
exit
fi
# configuration file found → delete/deinstall options
deinstall_options
exit