mknod.hpux

来自「创建一个符合iso-9660标准的iso文件系统」· HPUX 代码 · 共 53 行

HPUX
53
字号
#!/bin/sh################################################################# make SCSI device files according to: man scsi_ctl## Copyright (c) 1997 J. Schilling################################################################# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; see the file COPYING.  If not, write to# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.################################################################mknod="echo mknod"mkdir="echo mkdir -p"chmod="echo chmod"mknod="/usr/sbin/mknod"mkdir="mkdir -p"chmod="chmod"scsi=/dev/scsirscsi=/dev/rscsi${mkdir}  ${scsi}${mkdir} ${rscsi}bus=0target=0lun=0for bus in 0 1 2 3 4 5 6 7; do	for target in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do		for lun in 0 1 2 3 4 5 6 7; do			dev=c${bus}t${target}l${lun} 			$mknod  ${scsi}/${dev} c 203 0x${bus}${target}${lun}00			$chmod 0600  ${scsi}/${dev}			$mknod ${rscsi}/${dev} c 203 0x${bus}${target}${lun}02			$chmod 0600  ${rscsi}/${dev}		done	donedone

⌨️ 快捷键说明

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