source: lliurex-up/trunk/old/scripts/ultimate-rescue @ 2636

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

add old files

File size: 768 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 "Ultimate Rescue")"
15
16# Methods
17_info()
18{
19        echo "$INFO_MESSAGE"
20}
21
22_migrate()
23{
24        # Update cache
25        echo "$INFO_MESSAGE"
26        apt-get update
27        apt-get install lliurex-ultimate-rescue
28        # Exec
29        [ -! -x /usr/sbin/lliurex-ultimate-rescue ] || /usr/sbin/lliurex-ultimate-rescue
30       
31}
32
33_usage()
34{
35        echo " * [ LliureX Up ] : # Unknown argument"
36}
37
38_die()
39{
40        echo " * [ LliureX Up ] : Error: $1"
41        exit 1
42}
43
44ACTION="$1"
45case "$ACTION" in
46        migrate)
47                _migrate
48        ;;
49        info)
50                _info
51        ;;
52        *)
53                _usage
54        ;;
55esac
56
57exit 0
58
59
60
61
Note: See TracBrowser for help on using the repository browser.