⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ozerocdoff.8

📁 udev是一种工具
💻 8
字号:
.TH OZEROCDOFF "8" "April 2008" "Option Wireless" "System Administration Utilities".SH NAMEozerocdoff \- disables the Option ZERO-CD device.SH SYNOPSIS.B ozerocdoff [.B -hqwqdv].B -i.I DeviceID.RS.RS[.B -f.I name] [.B -n.I len] [.B -s.I time] [.B -l.I file].RE.RE.SH DESCRIPTION.B ozerocdoffis used for Option WWAN modem cards to switch off the ZERO-CD device. Therefore aSCSI rezero command will be send to the SCSI mass storage device of the WWAN modem withoutthe usage of the usb mass storage driver itself, but with the support of the usb lib.The ZERO-CD device will be found normally for driver installation just after plugging-inan Option WWAN modem.Note that ozerocdoff requires to be called as root user and should be triggered by a correspondingudev rule..SH OPTIONS.IP "-h, --help"output this help file.IP "-i, --device_id <n>"target USB device ID, required option.IP "-f, --usb_filename <str>"target usb_device USB file name in sysfs, optional.IP "-n, --namelen <n>"target USB file name len of the right part of the file name string; default 1, so only the last character will be checked.IP "-w, --warn_only"prints warning instead of errors and does not abort program.IP "-q, --quiet"don't show messages.IP "-l, --log <file>"prints all messages into log file instead to stdout or stderr.IP "-s, --searchtime <n>"searches for the Zero-CD device up to <n> ms. Note: Default ozerocdoff will automatically initializethis value to 800 ms, if the kernel does .B not support the usb_device class. Otherwise the search time will be set to 0 ms, which means there will be no additional wait or settling time. Setting this parameter in the command line will naturally override the automatic initialized value. If the kernel does not support the usb_device class, the udev daemon will setup the usb device nodes in parallelwith starting this ozerocdoff. So during startup of ozerocdoff there is no guarantee that the device nodes alreadyexists. Ozerocdoff will prevent timing hazards by searching for the Zero-CD device with a period of 100 ms up tothe maximum search time..IP "-t, --test"test only, no SCSI rezero command will be send.IP "-d, --debug"output some debug messages.IP "-v, --version"show version string.SH EXAMPLESYou should use such a kind of udev rule:.RESUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="Zero-CD".RESUBSYSTEM=="usb_device", GOTO="Zero-CD".REGOTO="End"LABEL="Zero-CD".REATTRS{idProduct}=="6711", RUN+="/usr/sbin/ozerocdoff -i 0x%s{idProduct}"Note that the first udev rule will be triggered also on kernels, which support the usb_device class. This means that here zerocdoff will be triggered twice, also by the rule of the 2nd line.Here some examples using the zerocdoff from the command line:.REozerocdoff -i 0xc031.REozerocdoff -i 0xc031 -f usbdev5.28 -n 2.REozerocdoff -i 0xc031 -w -l /var/log/ozerocdoff.log.SH AUTHORPeter Henn <support@option.com>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -