summaryrefslogtreecommitdiff
path: root/packages/void11/files/oezc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/void11/files/oezc.patch')
-rw-r--r--packages/void11/files/oezc.patch112
1 files changed, 112 insertions, 0 deletions
diff --git a/packages/void11/files/oezc.patch b/packages/void11/files/oezc.patch
new file mode 100644
index 0000000000..998f14c44e
--- /dev/null
+++ b/packages/void11/files/oezc.patch
@@ -0,0 +1,112 @@
+diff -urN void11-0.2.0/console/Makefile void11-0.2.0-zc/console/Makefile
+--- void11-0.2.0/console/Makefile 2004-01-08 05:05:56.000000000 -0500
++++ void11-0.2.0-zc/console/Makefile 2007-03-04 12:47:44.000000000 -0500
+@@ -11,7 +11,6 @@
+
+ $(PROG): $(PROGOBJ)
+ $(CC) $(CFLAGS) $(PROGOBJ) $(LIB) -o $@
+- $(STRIP) $@
+
+ clean:
+ $(RM) $(PROGOBJ) $(PROG) *~
+diff -urN void11-0.2.0/console/void11_hopper void11-0.2.0-zc/console/void11_hopper
+--- void11-0.2.0/console/void11_hopper 2003-03-14 22:25:02.000000000 -0500
++++ void11-0.2.0-zc/console/void11_hopper 2007-03-04 12:50:20.000000000 -0500
+@@ -1,3 +1,8 @@
+ #!/bin/sh
++iwconfig wlan0 essid test
++smallsleep 0.5
++iwpriv wlan0 hostapd 1
++smallsleep 0.5
+ iwconfig wlan0 mode master
+-while(true); do for i in $(seq 1 14); do iwconfig wlan0 channel $i; sleep 0.2; echo -n "$i. "; done; done 2>/dev/null
++#while(true); do for i in $(seq 1 14); do iwconfig wlan0 channel $i; sleep 0.2; echo -n "$i. "; done; done 2>/dev/null
++while(true); do for i in $(seq 1 11); do iwconfig wlan0 channel $i; smallsleep 0.2; echo -n "$i. "; done; done
+diff -urN void11-0.2.0/lib/Makefile void11-0.2.0-zc/lib/Makefile
+--- void11-0.2.0/lib/Makefile 2004-01-08 05:04:37.000000000 -0500
++++ void11-0.2.0-zc/lib/Makefile 2007-03-04 13:19:18.000000000 -0500
+@@ -11,7 +11,7 @@
+
+ $(LIB): $(LIBOBJ) $(HEADER)
+ rm -f $@ || true
+- gcc -shared -o $@ $(LIBOBJ)
++ ${CC} -shared -o $@ $(LIBOBJ)
+
+ clean:
+ $(RM) $(PROGOBJ) $(LIBOBJ) $(LIB) *~
+diff -urN void11-0.2.0/Makefile void11-0.2.0-zc/Makefile
+--- void11-0.2.0/Makefile 2004-01-08 06:49:00.000000000 -0500
++++ void11-0.2.0-zc/Makefile 2007-03-04 13:13:58.000000000 -0500
+@@ -2,7 +2,7 @@
+
+ include $(VOID11_TOPDIR)/Rules.make
+
+-SUBDIRS = lib
++SUBDIRS = lib smallsleep
+ CONFIG =
+
+ ifdef USECONSOLE
+@@ -19,6 +19,9 @@
+ lib:
+ @$(MAKE) -C $(VOID11_TOPDIR)/$@ -f Makefile VOID11_TOPDIR=$(VOID11_TOPDIR)
+
++smallsleep:
++ @$(MAKE) -C $(VOID11_TOPDIR)/$@ -f Makefile VOID11_TOPDIR=$(VOID11_TOPDIR)
++
+ console: lib
+ @$(MAKE) -C $(VOID11_TOPDIR)/$@ -f Makefile VOID11_TOPDIR=$(VOID11_TOPDIR)
+
+diff -urN void11-0.2.0/Rules.make void11-0.2.0-zc/Rules.make
+--- void11-0.2.0/Rules.make 2004-01-08 05:03:40.000000000 -0500
++++ void11-0.2.0-zc/Rules.make 2007-03-04 13:18:14.000000000 -0500
+@@ -11,5 +11,4 @@
+
+ MKDIR = mkdir -p
+ CP = cp -f
+-STRIP = strip -x
+-CC = gcc
++# CC = gcc
+diff -urN void11-0.2.0/smallsleep/Makefile void11-0.2.0-zc/smallsleep/Makefile
+--- void11-0.2.0/smallsleep/Makefile 1969-12-31 19:00:00.000000000 -0500
++++ void11-0.2.0-zc/smallsleep/Makefile 2007-03-04 12:57:27.000000000 -0500
+@@ -0,0 +1,10 @@
++CFLAGS = -g -O3 -Wall
++
++all: smallsleep
++
++smallsleep: smallsleep.c
++ $(CC) $(CFLAGS) smallsleep.c -o smallsleep
++
++install:
++ install -d /sbin
++ install -m 755 smallsleep /sbin
+diff -urN void11-0.2.0/smallsleep/smallsleep.c void11-0.2.0-zc/smallsleep/smallsleep.c
+--- void11-0.2.0/smallsleep/smallsleep.c 1969-12-31 19:00:00.000000000 -0500
++++ void11-0.2.0-zc/smallsleep/smallsleep.c 2007-03-04 12:57:27.000000000 -0500
+@@ -0,0 +1,26 @@
++#include <unistd.h> // for usleep
++#include <stdio.h> // for printf()
++#include <stdlib.h> // for atof()
++
++/* compile with
++gcc -g -Wall -o smallsleep smallsleep.c
++*/
++
++#define MICROSECONDS_IN_SECONDS 1000000
++
++int main (int argc, const char *argv[])
++{
++ if (argc != 2) {
++ fprintf (stderr, "usage: %s time-in-seconds\n", argv[0]);
++ fprintf (stderr, " (decimal values are OK for the time)\n");
++ return (1);
++ }
++
++ float fraction;
++ fraction = atof (argv[1]);
++
++ usleep (fraction * MICROSECONDS_IN_SECONDS);
++
++ return (0);
++
++} // main