Changeset 31663
- Timestamp:
- 12/09/14 22:32:56 (8 years ago)
- Location:
- titan/titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/global.h
r31661 r31663 6699 6699 char* getmoviedev() 6700 6700 { 6701 char* tmpstr = NULL ;6702 char* buf = NULL; 6701 char* tmpstr = NULL, *buf = NULL; 6702 6703 6703 tmpstr = readfiletomem("/tmp/.moviedev", 1); 6704 6704 printf("tmpstr: %s\n", tmpstr); … … 6718 6718 dev = getmoviedev(); 6719 6719 if(dev == NULL) 6720 {6721 6720 cmd = ostrcat("ls -al ", getconfig("rec_path", NULL), 0, 0); 6722 cmd = ostrcat(cmd, " >/dev/null", 1, 0);6723 }6724 6721 else 6725 6722 cmd = ostrcat("sdparm -C START /dev/", dev, 0, 0); 6726 6723 6724 // cmd = ostrcat(cmd, " >/dev/null", 1, 0); 6727 6725 printf("cmd: %s\n", cmd); 6728 6726 system(cmd); -
titan/titan/record.h
r31662 r31663 889 889 struct transponder* tpnode = NULL; 890 890 int input = DMX_IN_FRONTEND; 891 892 wakeup_record_device(); 891 893 892 894 if(chnode == NULL && filefd < 0) … … 1439 1441 struct stimerthread *recthumbfirstthread = NULL; 1440 1442 1441 struct skin* load = getscreen("loading");1442 drawscreen(load, 0, 0);1443 wakeup_record_device();1444 clearscreen(load);1445 1446 1443 while(servicenode != NULL) 1447 1444 { … … 1513 1510 if(ostrcmp(mbox->name, _("add recording (stop after current event)")) == 0) 1514 1511 { 1515 wakeup_record_device();1516 1512 epgnode = getepgbytime(status.aktservice->channel, time(NULL) + 60); 1517 1513 #ifndef SIMULATE … … 1527 1523 if(ostrcmp(mbox->name, _("add recording (indefinitely)")) == 0) 1528 1524 { 1529 wakeup_record_device();1530 1525 ret = recordstart(status.aktservice->channel, -1, 0, RECDIRECT, 0, NULL); 1531 1526 newstart = 1; … … 1537 1532 if(ret1 > 0) 1538 1533 { 1539 wakeup_record_device();1540 1534 ret = recordstart(status.aktservice->channel, -1, 0, RECDIRECT, time(NULL) + (ret1 * 60), NULL); 1541 1535 newstart = 1; -
titan/titan/rectimer.h
r31658 r31663 539 539 else 540 540 { 541 printf("########################################\n");542 printf("sdparm -C START /dev/sda\n");543 system("sdparm -C START /dev/sda");544 printf("########################################\n");545 546 char* moviedev = getmoviedev();547 if(moviedev != NULL)548 hddwakeup(moviedev);549 free(moviedev), moviedev = NULL;550 551 //workaround for standby recording552 char* cmd = NULL;553 cmd = ostrcat("ls -al ", getconfig("rec_path", NULL), 0, 0);554 // cmd = ostrcat(cmd, " >/dev/null", 1, 0);555 printf("cmd: %s\n", cmd);556 system(cmd);557 free(cmd), cmd = NULL;558 printf("########################################\n");559 /*560 sleep(5);561 cmd = NULL;562 cmd = ostrcat("ls -al ", getconfig("rec_path", NULL), 0, 0);563 // cmd = ostrcat(cmd, " >/dev/null", 1, 0);564 printf("cmd: %s\n", cmd);565 system(cmd);566 free(cmd), cmd = NULL;567 568 569 printf("########################################\n");570 571 printf("fdisk -l\n");572 system("fdisk -l");573 printf("########################################\n");574 575 printf("ls -al /media/\n");576 system("ls -al /media/");577 printf("########################################\n");578 579 printf("ls -al /media/hdd/\n");580 system("ls -al /media/hdd/");581 printf("########################################\n");582 583 printf("ls -al /media/hdd/movie/\n");584 system("ls -al /media/hdd/movie/");585 printf("########################################\n");586 587 printf("fdisk -l\n");588 system("fdisk -l");589 printf("########################################\n");590 591 printf("ls -al /media/\n");592 system("ls -al /media/");593 printf("########################################\n");594 595 printf("ls -al /media/hdd/\n");596 system("ls -al /media/hdd/");597 printf("########################################\n");598 599 printf("ls -al /media/hdd/movie/\n");600 system("ls -al /media/hdd/movie/");601 printf("########################################\n");602 603 printf("ls -al /media/autofs/\n");604 system("ls -al /media/autofs/");605 printf("########################################\n");606 607 printf("ls -al /media/autofs/sda1/\n");608 system("ls -al /media/autofs/sda1/");609 printf("########################################\n");610 */611 // workaround end612 541 ret = recordstart(chnode, -1, 0, RECTIMER, node->end, node); 613 542 if(ret == 14) ret = 0;
Note: See TracChangeset
for help on using the changeset viewer.