61 lines
1.7 KiB
Groff
61 lines
1.7 KiB
Groff
|
||
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
|