|
Revision 1400, 1.6 KB
(checked in by pascal, 4 years ago)
|
|
beschreibe und wiemitneo bei Deinstallation löschen
|
| Line | |
|---|
| 1 | |
|---|
| 2 | profile_neo() { |
|---|
| 3 | cat <<PROFIL |
|---|
| 4 | |
|---|
| 5 | # NEO: |
|---|
| 6 | PATH=\$PATH:$inst_dir/ # für asdf und uiae |
|---|
| 7 | export PATH # für asdf und uiae |
|---|
| 8 | asdf # mit einem # am Zeilenanfang bleibt QWERTZ das Standardlayout, sonst ist es NEO |
|---|
| 9 | PROFIL |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | profile_qwertz() { |
|---|
| 13 | cat <<PROFIL |
|---|
| 14 | |
|---|
| 15 | # NEO: |
|---|
| 16 | PATH=\$PATH:$inst_dir/ # für asdf und uiae |
|---|
| 17 | export PATH # für asdf und uiae |
|---|
| 18 | #asdf # mit einem # am Zeilenanfang bleibt QWERTZ das Standardlayout, sonst ist es NEO |
|---|
| 19 | PROFIL |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | neo_path() { |
|---|
| 23 | cat <<NEO_PATH |
|---|
| 24 | PATH=$PATH:$inst_dir |
|---|
| 25 | export PATH |
|---|
| 26 | echo "Die Belegung wird nun auf NEO geändert…" |
|---|
| 27 | asdf |
|---|
| 28 | NEO_PATH |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | # *** main program *** |
|---|
| 32 | clear |
|---|
| 33 | echo |
|---|
| 34 | echo " *** NEO – Ergonomie und Zeichenvielfalt ***" |
|---|
| 35 | echo |
|---|
| 36 | echo |
|---|
| 37 | echo " Ihr System wird untersucht…" |
|---|
| 38 | echo |
|---|
| 39 | |
|---|
| 40 | # check for an existing neo configuration |
|---|
| 41 | if [ -f "${NEO_CONFIG}" ]; then |
|---|
| 42 | . "${NEO_CONFIG}" || die "Failed to source ${NEO_CONFIG}" |
|---|
| 43 | elif [ -f "${HOME}"/.neorc ]; then |
|---|
| 44 | . "${HOME}"/.neorc || die "Failed to source ${HOME}/.neorc" |
|---|
| 45 | elif [ -f /etc/neo.conf ]; then |
|---|
| 46 | . /etc/neo.conf || die "Failed to source /etc/neo.conf" |
|---|
| 47 | else |
|---|
| 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 |
|---|
| 56 | fi |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | # configuration file found → delete/deinstall options |
|---|
| 60 | deinstall_options |
|---|
| 61 | exit |
|---|
| 62 | |
|---|