-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathiNB.sh
More file actions
63 lines (63 loc) · 2.41 KB
/
Copy pathiNB.sh
File metadata and controls
63 lines (63 loc) · 2.41 KB
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
#!/bin/sh
#
#skrypt installs neoboot-a
#
if `grep -q 'osd.language=ru_RU' </etc/enigma2/settings`; then
RU=1
fi
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh;
rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom;
rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh;
rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location
fi
[ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip
[ -e /tmp/neoboot-master ] && rm -rf /tmp/neoboot-master
[ $RU ] && echo "Скачивание zip архива..." || echo "Downloading archive file..."
URL='https://github.com/Ednaz/NeoBoot8/archive/master.zip'
curl -kLs $URL -o /tmp/neoboot.zip
cd /tmp/
if [ ! -e /tmp/master.zip ]; then
wget $URL
mv -f /tmp/master.zip /tmp/neoboot.zip
fi
unzip -qn ./neoboot.zip
rm -f /tmp/neoboot.zip
#kopiowanie
[ $RU ] && echo "Установка..." || echo "Instaling..."
Cel="/usr/lib/enigma2/python/Plugins/Extensions"
[ -e $Cel/NeoBoot ] && rm -rf $Cel/NeoBoot/* || mkdir -p $Cel/NeoBoot
mv -f /tmp/NeoBoot8-master/NeoBoot/* $Cel/NeoBoot
[ -e /tmp/NeoBoot8-master ] && rm -rf /tmp/NeoBoot8-master
cd $Cel/NeoBoot
chmod 755 ./bin/*
chmod 755 ./ex_init.py
chmod 755 ./files/*.sh
chmod 755 ./files/neo_location
chmod -R +x ./ubi_reader/*
if [ $RU ] ; then
echo ""
echo "#####################################################"
echo "# NEOBOOT УСТАНОВЛЕН #"
echo "#####################################################"
echo "# ПЕРЕЗАГРУЗИТЕ ВАШ РЕСИВЕР #"
echo "#####################################################"
echo ""
else
echo ""
echo "#####################################################"
echo "# NEOBOOT INSTALLED SUCCESSFULLY #"
echo "#####################################################"
echo "# PLEASE RESTART YOUR STB #"
echo "#####################################################"
echo ""
fi
exit 0
echo "#####################################################"
echo "# NEOBOOT INSTALLED SUCCESSFULLY #"
echo "#####################################################"
echo "# PLEASE RESTART YOUR STB #"
echo "#####################################################"
echo ""
fi
exit 0