source: lliurex-up/trunk/fuentes/scripts/common/cdd-discover @ 2609

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

refactoring

File size: 703 bytes
Line 
1#!/bin/sh
2# The last upgrade before the change
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 "Discover LliureX Version")"
15UPGRADE_PACKAGES_MESSAGE="$(gettext "Upgrade installed packages")"
16UPGRADE_PACKAGES_END_MESSAGE="$(gettext "Upgrade complete")"
17
18# Methods
19_info()
20{
21        echo "$INFO_MESSAGE"
22}
23
24_usage()
25{
26        echo "# Unknown argument"
27}
28
29
30_migrate()
31{
32    _researchCddVersion
33}
34
35_die()
36{
37        echo "Error: $1"
38        exit 1
39}
40
41ACTION="$1"
42case "$ACTION" in
43        migrate)
44                _migrate
45        ;;
46        info)
47                _info
48        ;;
49        *)
50                _usage
51        ;;
52esac
53
54exit 0
55
56
57
58
Note: See TracBrowser for help on using the repository browser.