-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlinux-gpib-nodevnodes.patch
33 lines (31 loc) · 1.06 KB
/
linux-gpib-nodevnodes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- old/linux-gpib-user/drivers/Makefile.am 2018-04-14 17:56:27.000000000 -0400
+++ new/linux-gpib-user/drivers/Makefile.am 2018-05-05 23:41:28.649487570 -0400
@@ -9,30 +9,6 @@
install-data-hook: gpib.conf
-$(DESTDIR)/dev/gpib0:
- $(INSTALL) -d $(DESTDIR)/dev
- for i in `seq 0 15`; \
- do \
- mknod -m u=rw,g=rw,o= $(DESTDIR)/dev/gpib$${i} c $(IBMAJOR) $${i} || exit 1; \
- chown root:gpib $(DESTDIR)/dev/gpib$${i}; \
- done
-
-.PHONY : device_files_install
-device_files_install: $(DESTDIR)/dev/gpib0
- @if [ ! -c $(DESTDIR)/dev/gpib0 ]; then \
- if [ -a $(DESTDIR)/dev/gpib0 ]; then \
- echo "A file or directory called /dev/gpib0 exists but it is not" \
- "a character device. Delete or move it and try again."; \
- exit 1; \
- fi; \
- fi
- @ls -l $(DESTDIR)/dev/gpib0 | grep -q "$(IBMAJOR)"; \
- if [ $$? != 0 ]; then \
- echo "$(DESTDIR)/dev/gpib0 has the wrong major number. " \
- "Delete your $(DESTDIR)/dev/gpibX files and try again."; \
- exit 1; \
- fi
-
#should move this to util/templates Makefile.am when it exists
.PHONY : gpib.conf
gpib.conf: