FireBirdLib - Topfield TMS PVR TAP Programming Library
LogoManager_MoveExternalUpdates.c
Go to the documentation of this file.
1
#include <unistd.h>
2
#include <stdlib.h>
3
#include "
libFireBird.h
"
4
#include "
FBLib_LogoManager.h
"
5
6
void
LogoManager_MoveExternalUpdates
(
void
)
7
{
8
TRACEENTER
();
9
10
char
Files[3][20] = {
"LogoPack.tar"
,
"Logos.lil"
,
"lil.add"
};
11
char
Drive, Partition;
12
int
File;
13
char
DatFile[28], cmd[255];
14
15
//Scan some external drives to find the logo updates
16
for
(File = 0; File < 3; File++)
17
{
18
for
(Drive =
'b'
; Drive <
'f'
; Drive++)
19
{
20
for
(Partition =
'0'
; Partition <
'2'
; Partition++)
21
{
22
if
(Partition ==
'0'
)
23
TAP_SPrint(DatFile,
"/mnt/sd%c/%s"
, Drive, Files[File]);
24
else
25
TAP_SPrint(DatFile,
"/mnt/sd%c%c/%s"
, Drive, Partition, Files[File]);
26
27
if
(!access(DatFile, F_OK))
28
{
29
TAP_SPrint(cmd,
"mv %s /mnt/hd"
LOGOROOT
, DatFile);
30
system(cmd);
31
}
32
}
33
}
34
}
35
36
TRACEEXIT
();
37
}
FBLib_LogoManager.h
LogoManager_MoveExternalUpdates
void LogoManager_MoveExternalUpdates(void)
Definition:
LogoManager_MoveExternalUpdates.c:6
libFireBird.h
LOGOROOT
#define LOGOROOT
Definition:
libFireBird.h:2217
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
LogoManager
LogoManager_MoveExternalUpdates.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3