Changeset 18512


Ignore:
Timestamp:
11/09/12 17:45:07 (11 years ago)
Author:
obi
Message:

[titan] move weather file to /var/swap/player

Location:
titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/weather/weather.h

    r18508 r18512  
    406406        char* tmpstr = NULL, *location = NULL;
    407407
     408        if(!file_exist(getconfig("weatherfile", NULL)))   
     409        {
     410                if(!file_exist("/var/swap/player"))   
     411                        mkdir("/var/swap/player", 0777);
     412               
     413                char* cmd = NULL;
     414                cmd = ostrcat("cp /var/etc/titan/weather ", getconfig("weatherfile", NULL), 0, 0);
     415                system(cmd);
     416                free(cmd), cmd = NULL;
     417        }
     418
    408419        location = readweather(getconfig("weatherfile", NULL), weather, listbox);
    409420        addscreenrc(weather, listbox);
  • titan/settings/titan.atemio510.cfg

    r18490 r18512  
    7171playlistpath=/var/swap/player
    7272playlistfile=/var/swap/player/playlist
    73 weatherfile=/var/etc/titan/weather
     73weatherfile=/var/swap/player/weather
    7474stockfile=/var/etc/titan/stock
    7575mostzapfile=/var/etc/titan/mostzap
  • titan/settings/titan.atemio7600.cfg

    r18490 r18512  
    7171playlistpath=/var/swap/player
    7272playlistfile=/var/swap/player/playlist
    73 weatherfile=/var/etc/titan/weather
     73weatherfile=/var/swap/player/weather
    7474stockfile=/var/etc/titan/stock
    7575mostzapfile=/var/etc/titan/mostzap
  • titan/settings/titan.cfg

    r18490 r18512  
    7171playlistpath=/var/swap/player
    7272playlistfile=/var/swap/player/playlist
    73 weatherfile=/var/etc/titan/weather
     73weatherfile=/var/swap/player/weather
    7474stockfile=/var/etc/titan/stock
    7575mostzapfile=/var/etc/titan/mostzap
Note: See TracChangeset for help on using the changeset viewer.