This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <ctime> | |
static void parseDVBdate(tm &t, int mjd) | |
{ | |
int k; | |
printf("[eDVBLocalTimerHandler] parseDVBdate, mjd is %d\n", mjd); | |
t.tm_year = (int) ((mjd - 15078.2) / 365.25); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import fcntl | |
import ctypes | |
_IOC_NRBITS = 8 | |
_IOC_TYPEBITS = 8 | |
_IOC_SIZEBITS = 14 | |
_IOC_DIRBITS = 2 | |
_IOC_NRSHIFT = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp | |
index 96f52b5..30918be 100644 | |
--- a/lib/dvb/frontend.cpp | |
+++ b/lib/dvb/frontend.cpp | |
@@ -1420,6 +1420,7 @@ void eDVBFrontend::getTransponderData(ePtr<iDVBTransponderData> &dest, bool orig | |
p[cmdseq.num++].cmd = DTV_FREQUENCY; | |
p[cmdseq.num++].cmd = DTV_INVERSION; | |
p[cmdseq.num++].cmd = DTV_MODULATION; | |
+ p[cmdseq.num++].cmd = DTV_API_VERSION; | |
if (type == feSatellite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
last = 0L | |
while True: | |
current = 0L | |
lines = open("/proc/net/dev").readlines()[3:] | |
for l in lines: | |
ll = l.split() | |
current += long(ll[1])+long(ll[9]) | |
delta = current - last |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opkg list-installed | grep kernel | grep r2 | awk '{ print "opkg install " $1 "=4.8.17-r1 --force-downgrade" }' | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Copyright (C) 2016 | |
# Albrecht Lohofener <[email protected]> | |
# | |
# dab_raw_record is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/syscall.h> | |
#include <iostream> | |
int main() | |
{ | |
std::cout << "SYS_ioprio_get:" << SYS_ioprio_get << " SYS_ioprio_set:" << SYS_ioprio_set << std::endl; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import ctypes | |
libc = ctypes.cdll.LoadLibrary('libc.so.6') | |
ioctl = libc.ioctl | |
buffer = ctypes.c_char_p("\0"*256) | |
fd = os.open("/dev/ci0", os.O_RDWR | os.O_NONBLOCK) | |
ioctl(fd, 1, buffer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <iostream> | |
#include <map> | |
class Branding | |
{ | |
std::map<std::string,std::string> m_branding; | |
public: | |
Branding(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/dvb/version.h> | |
#include <linux/dvb/frontend.h> | |
#include <iostream> | |
#include <sstream> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
NewerOlder