#!/bin/sh # The last upgrade before the change # gettext domain TEXTDOMAIN="lliurex-up" export TEXTDOMAIN COMMON_LIBRARY="/usr/share/lliurex-up/common-upgrade-vars.sh" if [ -r $COMMON_LIBRARY ] ; then . $COMMON_LIBRARY fi #gettext messages INFO_MESSAGE="$(gettext "Ultimate Rescue")" # Methods _info() { echo "$INFO_MESSAGE" } _migrate() { # Update cache echo "$INFO_MESSAGE" apt-get update apt-get install lliurex-ultimate-rescue # Exec [ -! -x /usr/sbin/lliurex-ultimate-rescue ] || /usr/sbin/lliurex-ultimate-rescue } _usage() { echo " * [ LliureX Up ] : # Unknown argument" } _die() { echo " * [ LliureX Up ] : Error: $1" exit 1 } ACTION="$1" case "$ACTION" in migrate) _migrate ;; info) _info ;; *) _usage ;; esac exit 0