diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-03-07 02:48:30 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-03-07 02:48:30 +0000 |
commit | 82f522e25a15d4a3bb992e25cf2d72524e00aee3 (patch) | |
tree | 6df1d9b7cf94cb5192ea66fb8eceaecf43058280 /packages/void11/files | |
parent | 95ab40dfc8bbb89f1579b5b5e2167459c97fcf8f (diff) | |
parent | a4f387cd021a1609192a230ac88147bdd9cd7011 (diff) |
merge of '8641efcbdf45be9e288119393a9b475e46f9c515'
and 'b0f962e1665b2f7f0c836386fa0e1e6e3bf6c376'
Diffstat (limited to 'packages/void11/files')
-rw-r--r-- | packages/void11/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/void11/files/oezc.patch | 112 |
2 files changed, 112 insertions, 0 deletions
diff --git a/packages/void11/files/.mtn2git_empty b/packages/void11/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/void11/files/.mtn2git_empty 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 |