2
0
forked from Ivasoft/openwrt

soloscli: upgrade to 1.04

- The package does not compile at the moment. Since there is a new
  upstream version avaiable, use this new source instead.
- Upstream has already included our both patches.
- This is only compile tested, since I do not own any test hardware.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

SVN-Revision: 40940
This commit is contained in:
John Crispin
2014-06-02 12:45:01 +00:00
parent 3306a4f9ab
commit 35d3c91c86
5 changed files with 28 additions and 42 deletions

View File

@@ -1,21 +0,0 @@
--- a/Makefile 2010-06-14 14:17:11.000000000 +1000
+++ b/Makefile 2010-06-14 14:17:54.000000000 +1000
@@ -13,6 +13,11 @@
KDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
+soloscli/soloscli:
+ $(MAKE) -C soloscli
+
+install:
+
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
@@ -20,5 +25,6 @@
rm -f *.o *.ko *.mod.c .*.cmd
rm -rf .tmp_versions
rm -f Module.symvers
+ $(MAKE) -C soloscli clean
endif

View File

@@ -1,15 +0,0 @@
--- a/soloscli/soloscli.c
+++ b/soloscli/soloscli.c
@@ -238,7 +238,11 @@
}
if (strcmp(buf,pid) == 0) {
/* printf("Sequence matches.\n"); */
- printf("%s",bufp);
+ if(buf[(len-1)] == '\n'){
+ printf("%s",bufp);
+ } else {
+ printf("%s\n",bufp);
+ }
} else {
printf("Sequence incorrect.\n");
buf[i] = '\n';

View File

@@ -0,0 +1,11 @@
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ else
KDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
-all: soloscli driver
+all: soloscli
soloscli: soloscli/soloscli

View File

@@ -0,0 +1,12 @@
--- a/soloscli/Makefile
+++ b/soloscli/Makefile
@@ -4,9 +4,6 @@
# Last Mod: 2009-06-16
#
-CC=gcc
-CFLAGS=-Wall
-
soloscli: soloscli.c soloscli.h
clean: