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/pandora/dists/pandora/main/binary-i386/Packages |
---|
19 | |
---|
20 | ROOTURL="http://lliurex.net/pandora/" |
---|
21 | PACKAGES_LIST=${ROOTURL}"dists/pandora/main/binary-i386/Packages" |
---|
22 | |
---|
23 | # Some useful files |
---|
24 | TEMPDIR=$(mktemp -d "/tmp/lliurex-ultimate-actions.XXXX") |
---|
25 | |
---|
26 | |
---|
27 | rc=0 |
---|
28 | # Get the packages list |
---|
29 | wget ${PACKAGES_LIST} -O ${TEMPDIR}"/Packages" |
---|
30 | |
---|
31 | # Get the URL of the package (last version of it) |
---|
32 | URL=${ROOTURL}$(grep "Filename: .*lliurex-ultimate-actions.*\.deb" "${TEMPDIR}"/Packages|sed 's/Filename: //'|head -n 1) |
---|
33 | |
---|
34 | # Download the deb |
---|
35 | wget ${URL} -O ${TEMPDIR}/lliurex-ultimate-actions.deb || rc=1 |
---|
36 | |
---|
37 | # Install the package downloaded |
---|
38 | dpkg -i --force-all ${TEMPDIR}/lliurex-ultimate-actions.deb |
---|
39 | |
---|
40 | # Run it ! |
---|
41 | lliurex-ultimate-actions || true |
---|
42 | |
---|
43 | # Cleanup actions |
---|
44 | echo "rm -rf "$TEMPDIR"" |
---|
45 | |
---|
46 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.