forked from milaebrothers/enigma2pc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_oscam.sh
executable file
·54 lines (43 loc) · 1.39 KB
/
build_oscam.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
#!/bin/sh
REQPKG="cmake"
for p in $REQPKG; do
echo -n ">>> Checking \"$p\" : "
dpkg -s $p >/dev/null
if [ "$?" -eq "0" ]; then
echo "package is installed, skip it"
else
echo "package NOT present, installing it"
sudo apt-get -y install $p
fi
done
echo "-----------------------------------------"
echo "*** INSTALL LIBUSB 1.06, GO LAST VERSION ***"
echo "*** http://www.libusb.org/ ***"
echo "-----------------------------------------"
cd oscam/libusb-1.0.6
autoconf -i
./configure --prefix=/usr/local
make
sudo make install
cd ..
echo "-----------------------------------------"
echo "*** INSTALL OSCAM ***"
echo "-----------------------------------------"
mkdir oscam_10871/build
cd oscam_10871/build
cmake --DHAVE_DVBAPI --DHAVE_WEBIF ../
sudo make install
cd ../..
echo "-----------------------------------------"
echo "*** COPY CONFIG FILES in /etc/vdr/oscam ***"
echo "*** EDIT DATA FOR YOU ***"
echo "-----------------------------------------"
sudo mkdir -p /etc/vdr/oscam
sudo cp -fR conf/* /etc/vdr/oscam
sudo cp -fRP softcam.oscam /etc/init.d/
sudo ln -s /etc/init.d/softcam.oscam /etc/init.d/softcam
echo "-----------------------------------------"
echo "*** STARTING OCSCAM ... ***"
echo "*** sudo /etc/init.d/softcam start ***"
echo "-----------------------------------------"
sudo /etc/init.d/softcam restart