-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstaller.sh
67 lines (58 loc) · 2 KB
/
installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
#########################################################
version=5.4
description="Double addition to all skins to work by choosing from XtraEvent or Render_X" !!!
#########################################################
#########################################################
PACKAGE_DIR='NitroAdvanceFHD/main'
MY_FILE="NitroAdvanceFHD.tar.gz"
#########################################################
MY_MAIN_URL="https://raw.githubusercontent.com/biko-73/"
MY_URL=$MY_MAIN_URL$PACKAGE_DIR'/'$MY_FILE
MY_TMP_FILE="/tmp/"$MY_FILE
rm -f $MY_TMP_FILE > /dev/null 2>&1
MY_SEP='============================================================='
echo $MY_SEP
echo 'Downloading '$MY_FILE' ...'
echo $MY_SEP
echo ''
wget -T 2 $MY_URL -P "/tmp/"
if [ -f $MY_TMP_FILE ]; then
echo ''
echo $MY_SEP
echo 'Extracting ...'
echo $MY_SEP
echo ''
tar -xf $MY_TMP_FILE -C /
MY_RESULT=$?
rm -f $MY_TMP_FILE > /dev/null 2>&1
echo ''
echo ''
if [ $MY_RESULT -eq 0 ]; then
echo "#########################################################"
echo "# NitroAdvanceFHD Skin $version INSTALLED SUCCESSFULLY #"
echo "# BY BIKO - support on #"
echo "# https://www.tunisia-sat.com/forums/forums/182/ #"
echo "#########################################################"
echo "# your Device will RESTART Now #"
echo "#########################################################"
if which systemctl > /dev/null 2>&1; then
sleep 2; systemctl restart enigma2
else
init 4; sleep 4; init 3;
fi
else
echo " >>>> INSTALLATION FAILED ! <<<<"
fi;
echo ''
echo '**************************************************'
echo '** FINISHED **'
echo '**************************************************'
echo ''
exit 0
else
echo ''
echo "Download failed !"
exit 1
fi
# ------------------------------------------------------------------------------------------------------------