vdr:/VDR/vdr-1.2.0 # zcat ../ElchiAIO3a-1.2.0.diff.gz | patch -p1
zcat: ../ElchiAIO3a-1.2.0.diff.gz: not in gzip format
??
was für format ist es nun?
vdr:/VDR/vdr-1.2.0 # zcat ../ElchiAIO3a-1.2.0.diff.gz | patch -p1
zcat: ../ElchiAIO3a-1.2.0.diff.gz: not in gzip format
??
was für format ist es nun?
Hallo michael_d2,
einfach mal
file Datei z.B. file ../ElchiAIO3a-1.2.0.diff.gz
ausführen.
Bei der Ausgabe von ElchiAIO3-1.2.0.diff.gz: 'diff' output text
handelt es sich bereits um ein entpacktes Diff.
Ciao
Bernhard
Habe es mal versucht aber da tut sicher nicht´s?
wie lauter der befehl genau?
versucht habe ich schon ./ElchiAIO3a-1.2.0.diff.gz
""- cSetupLine *l;
- while ((l = Get(Name)) != NULL)
- Del(l);
- for (int d = 0; d < MAXDEVICES; d++) {
- char buffer[MAXPARSEBUFFER];
- char *q = buffer;
- *buffer = 0;
- for (int i = 0; i < MAXCACAPS; i++) {
- if (CaCaps[d][i]) {
- if (!*buffer)
- q += snprintf(buffer, sizeof(buffer), "%d", d + 1);
- q += snprintf(q, sizeof(buffer) - (q - buffer), " %d", CaCaps[d][i]);
- }
- }
- if (*buffer)
- Store(Name, buffer, NULL, true);
- }
-}
-
-bool cSetup::ParseCaCaps(const char *Value)
-{
- char *p;
- int d = strtol(Value, &p, 10);
- if (d > 0 && d <= MAXDEVICES) {
- d--;
- int i = 0;
- while (p != Value && p && *p) {
- if (i < MAXCACAPS) {
- int c = strtol(p, &p, 10);
- if (c > 0)
- CaCaps[d][i++] = c;
- else
- return false;
- }
- else
- return false;
- }
- return true;
- }
- return false;
-}
-
-bool cSetup::Parse(const char *Name, const char *Value)
-{
- if (!strcasecmp(Name, "OSDLanguage")) OSDLanguage = atoi(Value);
- else if (!strcasecmp(Name, "PrimaryDVB")) PrimaryDVB = atoi(Value);
- else if (!strcasecmp(Name, "ShowInfoOnChSwitch")) ShowInfoOnChSwitch = atoi(Value);
- else if (!strcasecmp(Name, "MenuScrollPage")) MenuScrollPage = atoi(Value);
- else if (!strcasecmp(Name, "MarkInstantRecord")) MarkInstantRecord = atoi(Value);
- else if (!strcasecmp(Name, "NameInstantRecord")) strn0cpy(NameInstantRecord, Value, MaxFileName);
- else if (!strcasecmp(Name, "InstantRecordTime")) InstantRecordTime = atoi(Value);
- else if (!strcasecmp(Name, "LnbSLOF")) LnbSLOF = atoi(Value);
- else if (!strcasecmp(Name, "LnbFrequLo")) LnbFrequLo = atoi(Value);
- else if (!strcasecmp(Name, "LnbFrequHi")) LnbFrequHi = atoi(Value);
- else if (!strcasecmp(Name, "DiSEqC")) DiSEqC = atoi(Value);
- else if (!strcasecmp(Name, "SetSystemTime")) SetSystemTime = atoi(Value);
- else if (!strcasecmp(Name, "TimeTransponder")) TimeTransponder = atoi(Value);
- else if (!strcasecmp(Name, "MarginStart")) MarginStart = atoi(Value);
- else if (!strcasecmp(Name, "MarginStop")) MarginStop = atoi(Value);
- else if (!strcasecmp(Name, "EPGScanTimeout")) EPGScanTimeout = atoi(Value);
- else if (!strcasecmp(Name, "EPGBugfixLevel")) EPGBugfixLevel = atoi(Value);
- else if (!strcasecmp(Name, "SVDRPTimeout")) SVDRPTimeout = atoi(Value);
- else if (!strcasecmp(Name, "SortTimers")) SortTimers = atoi(Value);
- else if (!strcasecmp(Name, "PrimaryLimit")) PrimaryLimit = atoi(Value);
- else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value);
- else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value);
- else if (!strcasecmp(Name, "PausePriority")) PausePriority = atoi(Value);
- else if (!strcasecmp(Name, "PauseLifetime")) PauseLifetime = atoi(Value);
- else if (!strcasecmp(Name, "UseSubtitle")) UseSubtitle = atoi(Value);
- else if (!strcasecmp(Name, "RecordingDirs")) RecordingDirs = atoi(Value);
- else if (!strcasecmp(Name, "VideoFormat")) VideoFormat = atoi(Value);
- else if (!strcasecmp(Name, "RecordDolbyDigital")) RecordDolbyDigital = atoi(Value);
- else if (!strcasecmp(Name, "ChannelInfoPos")) ChannelInfoPos = atoi(Value);
- else if (!strcasecmp(Name, "OSDwidth")) OSDwidth = atoi(Value);
- else if (!strcasecmp(Name, "OSDheight")) OSDheight = atoi(Value);
- else if (!strcasecmp(Name, "OSDMessageTime")) OSDMessageTime = atoi(Value);
- else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoi(Value);
- else if (!strcasecmp(Name, "SplitEditedFiles")) SplitEditedFiles = atoi(Value);
- else if (!strcasecmp(Name, "MinEventTimeout")) MinEventTimeout = atoi(Value);
- else if (!strcasecmp(Name, "MinUserInactivity")) MinUserInactivity = atoi(Value);
- else if (!strcasecmp(Name, "MultiSpeedMode")) MultiSpeedMode = atoi(Value);
- else if (!strcasecmp(Name, "ShowReplayMode")) ShowReplayMode = atoi(Value);
- else if (!strcasecmp(Name, "ResumeID")) ResumeID = atoi(Value);
- else if (!strcasecmp(Name, "CaCaps")) return ParseCaCaps(Value);
- else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
- else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value);
- else
- return false;
- return true;
-}
-
-bool cSetup::Save(void)
-{
- Store("OSDLanguage", OSDLanguage);
- Store("PrimaryDVB", PrimaryDVB);
- Store("ShowInfoOnChSwitch", ShowInfoOnChSwitch);
- Store("MenuScrollPage", MenuScrollPage);
- Store("MarkInstantRecord", MarkInstantRecord);
- Store("NameInstantRecord", NameInstantRecord);
- Store("InstantRecordTime", InstantRecordTime);
- Store("LnbSLOF", LnbSLOF);
- Store("LnbFrequLo", LnbFrequLo);
- Store("LnbFrequHi", LnbFrequHi);
- Store("DiSEqC", DiSEqC);
- Store("SetSystemTime", SetSystemTime);
- Store("TimeTransponder", TimeTransponder);
- Store("MarginStart", MarginStart);
- Store("MarginStop", MarginStop);
- Store("EPGScanTimeout", EPGScanTimeout);
- Store("EPGBugfixLevel", EPGBugfixLevel);
- Store("SVDRPTimeout", SVDRPTimeout);
- Store("SortTimers", SortTimers);
- Store("PrimaryLimit", PrimaryLimit);
- Store("DefaultPriority", DefaultPriority);
- Store("DefaultLifetime", DefaultLifetime);
- Store("PausePriority", PausePriority);
- Store("PauseLifetime", PauseLifetime);
- Store("UseSubtitle", UseSubtitle);
- Store("RecordingDirs", RecordingDirs);
- Store("VideoFormat", VideoFormat);
- Store("RecordDolbyDigital", RecordDolbyDigital);
- Store("ChannelInfoPos", ChannelInfoPos);
- Store("OSDwidth", OSDwidth);
- Store("OSDheight", OSDheight);
- Store("OSDMessageTime", OSDMessageTime);
- Store("MaxVideoFileSize", MaxVideoFileSize);
- Store("SplitEditedFiles", SplitEditedFiles);
- Store("MinEventTimeout", MinEventTimeout);
- Store("MinUserInactivity", MinUserInactivity);
- Store("MultiSpeedMode", MultiSpeedMode);
- Store("ShowReplayMode", ShowReplayMode);
- Store("ResumeID", ResumeID);
- StoreCaCaps("CaCaps");
- Store("CurrentChannel", CurrentChannel);
- Store("CurrentVolume", CurrentVolume);
-
- Sort();
-
- if (cConfig<cSetupLine>::Save()) {
- isyslog("saved setup to %s", FileName());
- return true;
- }
- return false;
-}
./ElchiAIO3a-1.2.0.diff.gz: ---: command not found
./ElchiAIO3a-1.2.0.diff.gz: +++: command not found
./ElchiAIO3a-1.2.0.diff.gz: @@: command not found
./ElchiAIO3a-1.2.0.diff.gz: ChannelInfoPos: command not found
./ElchiAIO3a-1.2.0.diff.gz: OSDwidth: command not found
./ElchiAIO3a-1.2.0.diff.gz: OSDheight: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: +: command not found
./ElchiAIO3a-1.2.0.diff.gz: OSDMessageTime: command not found
./ElchiAIO3a-1.2.0.diff.gz: MaxVideoFileSize: command not found
./ElchiAIO3a-1.2.0.diff.gz: SplitEditedFiles: command not found
./ElchiAIO3a-1.2.0.diff.gz: @@: command not found
./ElchiAIO3a-1.2.0.diff.gz: line 36: syntax error near unexpected token `memset(CaCaps,'
./ElchiAIO3a-1.2.0.diff.gz: line 36: ` memset(CaCaps, sizeof(CaCaps), 0);'
""
was mache ich falsch?
Gruss Michael
Machs einfach mit
patch -p1 < ../ElchiAIO3a-1.2.0.diff.gz
Mini AIO Patch
Author: Andy Grobb
mit "zcat ElchiAIO3a-1.2.0.diff.gz | patch -p1" patchen
Also ElchiAIO3... ins VDR Verzeichnis kopieren und dort hinwechseln .
Dann Patch ausführen.
Aber nicht ../ElchiAIO3... sondern wie oben !!
bye
ZitatOriginal von Morone
Also ElchiAIO3... ins VDR Verzeichnis kopieren und dort hinwechseln .
Dann Patch ausführen.
Aber nicht ../ElchiAIO3... sondern wie oben !!
Wo der Ptach liegt ist egal, wichtig ist nur, dass der Pfad stimmt. Oft wird gesagt, dass man es ins verzeichnis kopieren soll, weil dann die Folgebeschreibung einfacher ist. Gehen tuts aber definitiv auch mit anderen Verzeichnissen.
Naja , egal ist das nun nicht , kommt auf den Patch drauf an.
Aber wenn er einmal ../Elchi...... und einmal ./Elchi..... versucht, scheint mir da
was im Busch zu liegen oder er hat es zu beiden Stellen kopiert.
bye
ZitatOriginal von Morone
Naja , egal ist das nun nicht , kommt auf den Patch drauf an.
Aber wenn er einmal ../Elchi...... und einmal ./Elchi..... versucht, scheint mir da
was im Busch zu liegen oder er hat es zu beiden Stellen kopiert.
bye
Naja seit 3 Jahren habe ich noch nie einen Patch ins Verzeichnis kopiert, geklappt hat alles, daher meine ich schon es ist egal, zumindest beim GNU-Patch.
Als er ./ gemacht hat, hat er versucht das Ding auszuführen, das war nicht als Pfadangabe gedacht, sondern ist notwendig, weil er als root arbeitet (erkennbar am # im Prompt, was ja bei Standartsystemen root-prompt ist).
Wenn der Pfad falsch gewesen wäre, dann wäre eine Fehlermeldung gekommen, dass er die Datei nicht findet.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!