blob: 572e96ad5c01563f1c3553098b8c1d4ec77497a7 (
plain)
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
|
#double check driver
if lsmod | grep -q 'brcmfb'; then
echo driver is installed
else
for mod in procmk dvb-bcm7325 brcmfb; do
modprobe $mod
done
fi
depmod -Ae
#Solo has only usb port. Needs a delay for usb pvr
count=1
while [ $count -le 5 ]
do
let count=$count+1
if [ -e /dev/sda1 ]; then
echo count, $count
echo "External USB HDD will be mounted on /media/hdd"
break;
fi;
sleep 1
done
# sleep after 10min
hdparm -S 120 /dev/sda
# accustic management
hdparm -M 128 /dev/sda
if [ ! -h /boot/bootlogo.mvi ]; then
ln -sf /usr/share/bootlogo.mvi /boot/bootlogo.mvi
fi
if [ ! -h /boot/bootlogo_wait.mvi ]; then
ln -sf /usr/share/bootlogo_wait.mvi /boot/bootlogo_wait.mvi
fi
if [ ! -h /boot/backdrop.mvi ]; then
ln -sf /usr/share/backdrop.mvi /boot/backdrop.mvi
fi
[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /boot/bootlogo.mvi || /usr/bin/showiframe /boot/bootlogo_wait.mvi
ipkg-cl configure
if [ -f /usr/local/bin/vucamd ]; then
/usr/local/bin/vucamd &
fi
|