root/linux/bin/installiere_neo/installiere_neo.2 @ 1383

Revision 1383, 1.5 KB (checked in by pascal, 4 years ago)

Kommentare ergänzt

Line 
1
2profile_neo() {
3cat <<PROFIL
4
5# NEO:
6PATH=\$PATH:$inst_dir/  # für asdf und uiae
7export PATH             # für asdf und uiae
8asdf                    # mit einem # am Zeilenanfang bleibt QWERTZ das Standardlayout, sonst ist es NEO
9PROFIL
10}
11
12profile_qwertz() {
13cat <<PROFIL
14
15# NEO:
16PATH=\$PATH:$inst_dir/  # für asdf und uiae
17export PATH             # für asdf und uiae
18# asdf                  # mit einem # am Zeilenanfang bleibt QWERTZ das Standardlayout, sonst ist es NEO
19PROFIL
20}
21
22neo_path() {
23cat <<NEO_PATH
24PATH=$PATH:$inst_dir
25export PATH
26echo "Die Belegung wird nun auf NEO geändert…"
27asdf
28NEO_PATH
29}
30
31# *** main program ***
32clear
33echo
34echo "   *** NEO – Ergonomie und Zeichenvielfalt ***"
35echo
36echo
37echo " Ihr System wird untersucht…"
38echo
39
40# check for an existing neo configuration
41if [ -f "${NEO_CONFIG}" ]; then
42        . "${NEO_CONFIG}" || die "Failed to source ${NEO_CONFIG}"
43elif [ -f "${HOME}"/.neorc ]; then
44        . "${HOME}"/.neorc || die "Failed to source ${HOME}/.neorc"
45elif [ -f /etc/neo.conf ]; then
46        . /etc/neo.conf || die "Failed to source /etc/neo.conf"
47else
48
49# no configuration file found → install NEO
50        install_options
51        neo_path > $inst_dir/starte_neo
52        echo
53        echo -e "Um NEO nun jetzt zu aktivieren geben Sie bitte »${green}. $inst_dir/starte_neo${normal}« (mit Punkt und Leerzeichen!) ein."
54        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."
55        exit
56fi
57
58
59# configuration file found → delete/deinstall options
60deinstall_options
61exit
62
Note: See TracBrowser for help on using the browser.