From: Kees Jongenburger Date: Mon, 26 May 2014 14:47:52 +0000 (+0200) Subject: usb:add devmand usb_storage startup script. X-Git-Tag: v3.3.0~267 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mdoc.3.txt?a=commitdiff_plain;h=b32ff391d370e83f7e1fddd766948daeb7b8fe79;p=minix.git usb:add devmand usb_storage startup script. Change-Id: Ied194729ea168e8b2cc03d3b808da01860f0eac5 http://gerrit.minix3.org/#/c/2694/ --- diff --git a/distrib/sets/lists/minix/mi b/distrib/sets/lists/minix/mi index 54bb9052c..e3b257c6f 100644 --- a/distrib/sets/lists/minix/mi +++ b/distrib/sets/lists/minix/mi @@ -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 diff --git a/etc/Makefile b/etc/Makefile index 1af1c740a..9e11382b4 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -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 index 000000000..7839f9b13 --- /dev/null +++ b/etc/devmand/usb_storage.cfg @@ -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; +}