]> Zhao Yanbai Git Server - minix.git/commitdiff
usb:add devmand usb_storage startup script.
authorKees Jongenburger <kees.jongenburger@gmail.com>
Mon, 26 May 2014 14:47:52 +0000 (16:47 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:39 +0000 (17:05 +0200)
Change-Id: Ied194729ea168e8b2cc03d3b808da01860f0eac5

http://gerrit.minix3.org/#/c/2694/

distrib/sets/lists/minix/mi
etc/Makefile
etc/devmand/usb_storage.cfg [new file with mode: 0644]

index 54bb9052c53cdacff18beecc06938c4479d47dc1..e3b257c6fb6b204a80d49b2993f8fbe9253201c0 100644 (file)
@@ -79,6 +79,7 @@
 ./etc/devmand/scripts                  minix-sys
 ./etc/devmand/scripts/block            minix-sys
 ./etc/devmand/scripts/singlechar       minix-sys
+./etc/devmand/usb_storage.cfg          minix-sys
 ./etc/gettytab                         minix-sys
 ./etc/group                            minix-sys
 ./etc/hostname.file                    minix-sys
index 1af1c740aa69e2fb48bffe0932c7a9f6fe3fb29d..9e11382b4d8ecf68b37dc5e88f8b139ee020b341 100644 (file)
@@ -430,6 +430,7 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/ ${DESTDIR}/usr/lib/ crontab \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/ ${DESTDIR}/etc/ system.conf \
                ${BINOWN} ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/ Makefile \
+               ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/devmand/ ${DESTDIR}/etc/devmand/ usb_storage.cfg \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ block  \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ singlechar \
                ${BINOWN} ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/usr/ast/ .[aepv]* \
diff --git a/etc/devmand/usb_storage.cfg b/etc/devmand/usb_storage.cfg
new file mode 100644 (file)
index 0000000..7839f9b
--- /dev/null
@@ -0,0 +1,10 @@
+usb_driver usb_storage
+{
+       binary = /usr/sbin/usb_storage;
+       id {
+               bInterfaceClass = 0x08;
+       }
+       devprefix = usb_disk;
+       upscript = /etc/devmand/scripts/block;
+       downscript = /etc/devmand/scripts/block;
+}