source: lliurex-up/trunk/fuentes/scripts/server/update-x-terminal-on-servers @ 2609

Last change on this file since 2609 was 2609, checked in by kbut, 3 years ago

refactoring

File size: 874 bytes
Line 
1#!/bin/sh
2# Installing packages (doing the real dist-upgrade)
3
4# gettext domain
5TEXTDOMAIN="lliurex-up"
6export TEXTDOMAIN
7
8COMMON_LIBRARY="/usr/share/lliurex-up/common-upgrade-vars.sh"
9if [  -r $COMMON_LIBRARY  ] ; then 
10        . $COMMON_LIBRARY
11fi
12
13#gettext messages
14INFO_MESSAGE="$(gettext "Change X Terminal Priority")"
15
16# Methods
17
18_change_x_terminal_priority()
19{
20    update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/gnome-terminal.wrapper 50 --slave /usr/share/man/man1/x-terminal-emulator.1.gz  x-terminal-emulator.1.gz /usr/share/man/man1/gnome-terminal.wrapper.1.gz || true
21}
22
23_info()
24{
25        echo "$INFO_MESSAGE"
26}
27
28_migrate()
29{
30        _change_x_terminal_priority
31}
32
33_usage()
34{
35        echo "# Unknown argument"
36
37}
38
39_die()
40{
41        echo "Error: $1"
42        exit 1
43}
44
45ACTION="$1"
46case "$ACTION" in
47        migrate)
48                _migrate
49        ;;
50        info)
51                _info
52        ;;
53        *)
54                _usage
55        ;;
56esac
57
Note: See TracBrowser for help on using the repository browser.