source: lliurex-up/trunk/old/lliurex-ultimate-rescue.install/usr/sbin/lliurex-ultimate-rescue @ 2636

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

add old files

File size: 1.1 KB
Line 
1#!/bin/bash
2
3# Welcome to the powerfull saving technology
4# Thanks a lot to Hector Garcia and Raul Rodrigo for
5# his help.
6
7# This script is licensed under GPL V3 or higher
8# The purpose of this script is simple:
9#
10# First we must download the latest version of
11# lliurex-ultimate-actions
12#
13# Then install it
14# and run it...
15#
16
17# This is the URL of the package list
18# http://lliurex.net/xenial/dists/xenial/main/binary-i386/Packages
19
20ROOTURL="http://lliurex.net/xenial/"
21PACKAGES_LIST=${ROOTURL}"dists/xenial/main/binary-i386/Packages"
22
23# Some useful files
24TEMPDIR=$(mktemp -d "/tmp/lliurex-ultimate-actions.XXXX")
25
26
27rc=0 
28# Get the packages list
29wget ${PACKAGES_LIST} -O ${TEMPDIR}"/Packages"
30
31# Get the URL of the package (last version of it)
32URL=${ROOTURL}$(grep "Filename: .*lliurex-ultimate-actions.*\.deb" "${TEMPDIR}"/Packages|sed 's/Filename: //'|head -n 1) 
33
34# Download the deb
35wget ${URL} -O ${TEMPDIR}/lliurex-ultimate-actions.deb  || rc=1
36
37# Install the package downloaded
38dpkg -i --force-all ${TEMPDIR}/lliurex-ultimate-actions.deb
39
40# Run it !
41lliurex-ultimate-actions || true
42
43# Cleanup actions
44echo "rm -rf "$TEMPDIR""
45
46exit 0
Note: See TracBrowser for help on using the repository browser.