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
7{
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}
void LogoManager_MoveExternalUpdates(void)
#define LOGOROOT
Definition: libFireBird.h:2217
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243