computone.txt 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. NOTE: This is an unmaintained driver. It is not guaranteed to work due to
  2. changes made in the tty layer in 2.6. If you wish to take over maintenance of
  3. this driver, contact Michael Warfield <mhw@wittsend.com>.
  4. Changelog:
  5. ----------
  6. 11-01-2001: Original Document
  7. 10-29-2004: Minor misspelling & format fix, update status of driver.
  8. James Nelson <james4765@gmail.com>
  9. Computone Intelliport II/Plus Multiport Serial Driver
  10. -----------------------------------------------------
  11. Release Notes For Linux Kernel 2.2 and higher.
  12. These notes are for the drivers which have already been integrated into the
  13. kernel and have been tested on Linux kernels 2.0, 2.2, 2.3, and 2.4.
  14. Version: 1.2.14
  15. Date: 11/01/2001
  16. Historical Author: Andrew Manison <amanison@america.net>
  17. Primary Author: Doug McNash
  18. Support: support@computone.com
  19. Fixes and Updates: Mike Warfield <mhw@wittsend.com>
  20. This file assumes that you are using the Computone drivers which are
  21. integrated into the kernel sources. For updating the drivers or installing
  22. drivers into kernels which do not already have Computone drivers, please
  23. refer to the instructions in the README.computone file in the driver patch.
  24. 1. INTRODUCTION
  25. This driver supports the entire family of Intelliport II/Plus controllers
  26. with the exception of the MicroChannel controllers. It does not support
  27. products previous to the Intelliport II.
  28. This driver was developed on the v2.0.x Linux tree and has been tested up
  29. to v2.4.14; it will probably not work with earlier v1.X kernels,.
  30. 2. QUICK INSTALLATION
  31. Hardware - If you have an ISA card, find a free interrupt and io port.
  32. List those in use with `cat /proc/interrupts` and
  33. `cat /proc/ioports`. Set the card dip switches to a free
  34. address. You may need to configure your BIOS to reserve an
  35. irq for an ISA card. PCI and EISA parameters are set
  36. automagically. Insert card into computer with the power off
  37. before or after drivers installation.
  38. Note the hardware address from the Computone ISA cards installed into
  39. the system. These are required for editing ip2.c or editing
  40. /etc/modprobe.conf, or for specification on the modprobe
  41. command line.
  42. Note that the /etc/modules.conf should be used for older (pre-2.6)
  43. kernels.
  44. Software -
  45. Module installation:
  46. a) Determine free irq/address to use if any (configure BIOS if need be)
  47. b) Run "make config" or "make menuconfig" or "make xconfig"
  48. Select (m) module for CONFIG_COMPUTONE under character
  49. devices. CONFIG_PCI and CONFIG_MODULES also may need to be set.
  50. c) Set address on ISA cards then:
  51. edit /usr/src/linux/drivers/char/ip2.c if needed
  52. or
  53. edit /etc/modprobe.conf if needed (module).
  54. or both to match this setting.
  55. d) Run "make modules"
  56. e) Run "make modules_install"
  57. f) Run "/sbin/depmod -a"
  58. g) install driver using `modprobe ip2 <options>` (options listed below)
  59. h) run ip2mkdev (either the script below or the binary version)
  60. Kernel installation:
  61. a) Determine free irq/address to use if any (configure BIOS if need be)
  62. b) Run "make config" or "make menuconfig" or "make xconfig"
  63. Select (y) kernel for CONFIG_COMPUTONE under character
  64. devices. CONFIG_PCI may need to be set if you have PCI bus.
  65. c) Set address on ISA cards then:
  66. edit /usr/src/linux/drivers/char/ip2.c
  67. (Optional - may be specified on kernel command line now)
  68. d) Run "make zImage" or whatever target you prefer.
  69. e) mv /usr/src/linux/arch/i386/boot/zImage to /boot.
  70. f) Add new config for this kernel into /etc/lilo.conf, run "lilo"
  71. or copy to a floppy disk and boot from that floppy disk.
  72. g) Reboot using this kernel
  73. h) run ip2mkdev (either the script below or the binary version)
  74. Kernel command line options:
  75. When compiling the driver into the kernel, io and irq may be
  76. compiled into the driver by editing ip2.c and setting the values for
  77. io and irq in the appropriate array. An alternative is to specify
  78. a command line parameter to the kernel at boot up.
  79. ip2=io0,irq0,io1,irq1,io2,irq2,io3,irq3
  80. Note that this order is very different from the specifications for the
  81. modload parameters which have separate IRQ and IO specifiers.
  82. The io port also selects PCI (1) and EISA (2) boards.
  83. io=0 No board
  84. io=1 PCI board
  85. io=2 EISA board
  86. else ISA board io address
  87. You only need to specify the boards which are present.
  88. Examples:
  89. 2 PCI boards:
  90. ip2=1,0,1,0
  91. 1 ISA board at 0x310 irq 5:
  92. ip2=0x310,5
  93. This can be added to and "append" option in lilo.conf similar to this:
  94. append="ip2=1,0,1,0"
  95. 3. INSTALLATION
  96. Previously, the driver sources were packaged with a set of patch files
  97. to update the character drivers' makefile and configuration file, and other
  98. kernel source files. A build script (ip2build) was included which applies
  99. the patches if needed, and build any utilities needed.
  100. What you receive may be a single patch file in conventional kernel
  101. patch format build script. That form can also be applied by
  102. running patch -p1 < ThePatchFile. Otherwise run ip2build.
  103. The driver can be installed as a module (recommended) or built into the
  104. kernel. This is selected as for other drivers through the `make config`
  105. command from the root of the Linux source tree. If the driver is built
  106. into the kernel you will need to edit the file ip2.c to match the boards
  107. you are installing. See that file for instructions. If the driver is
  108. installed as a module the configuration can also be specified on the
  109. modprobe command line as follows:
  110. modprobe ip2 irq=irq1,irq2,irq3,irq4 io=addr1,addr2,addr3,addr4
  111. where irqnum is one of the valid Intelliport II interrupts (3,4,5,7,10,11,
  112. 12,15) and addr1-4 are the base addresses for up to four controllers. If
  113. the irqs are not specified the driver uses the default in ip2.c (which
  114. selects polled mode). If no base addresses are specified the defaults in
  115. ip2.c are used. If you are autoloading the driver module with kerneld or
  116. kmod the base addresses and interrupt number must also be set in ip2.c
  117. and recompile or just insert and options line in /etc/modprobe.conf or both.
  118. The options line is equivalent to the command line and takes precedence over
  119. what is in ip2.c.
  120. /etc/modprobe.conf sample:
  121. options ip2 io=1,0x328 irq=1,10
  122. alias char-major-71 ip2
  123. alias char-major-72 ip2
  124. alias char-major-73 ip2
  125. The equivalent in ip2.c:
  126. static int io[IP2_MAX_BOARDS]= { 1, 0x328, 0, 0 };
  127. static int irq[IP2_MAX_BOARDS] = { 1, 10, -1, -1 };
  128. The equivalent for the kernel command line (in lilo.conf):
  129. append="ip2=1,1,0x328,10"
  130. Note: Both io and irq should be updated to reflect YOUR system. An "io"
  131. address of 1 or 2 indicates a PCI or EISA card in the board table.
  132. The PCI or EISA irq will be assigned automatically.
  133. Specifying an invalid or in-use irq will default the driver into
  134. running in polled mode for that card. If all irq entries are 0 then
  135. all cards will operate in polled mode.
  136. If you select the driver as part of the kernel run :
  137. make zlilo (or whatever you do to create a bootable kernel)
  138. If you selected a module run :
  139. make modules && make modules_install
  140. The utility ip2mkdev (see 5 and 7 below) creates all the device nodes
  141. required by the driver. For a device to be created it must be configured
  142. in the driver and the board must be installed. Only devices corresponding
  143. to real IntelliPort II ports are created. With multiple boards and expansion
  144. boxes this will leave gaps in the sequence of device names. ip2mkdev uses
  145. Linux tty naming conventions: ttyF0 - ttyF255 for normal devices, and
  146. cuf0 - cuf255 for callout devices.
  147. If you are using devfs, existing devices are automatically created within
  148. the devfs name space. Normal devices will be tts/F0 - tts/F255 and callout
  149. devices will be cua/F0 - cua/F255. With devfs installed, ip2mkdev will
  150. create symbolic links in /dev from the old conventional names to the newer
  151. devfs names as follows:
  152. /dev/ip2ipl[n] -> /dev/ip2/ipl[n] n = 0 - 3
  153. /dev/ip2stat[n] -> /dev/ip2/stat[n] n = 0 - 3
  154. /dev/ttyF[n] -> /dev/tts/F[n] n = 0 - 255
  155. /dev/cuf[n] -> /dev/cua/F[n] n = 0 - 255
  156. Only devices for existing ports and boards will be created.
  157. IMPORTANT NOTE: The naming convention used for devfs by this driver
  158. was changed from 1.2.12 to 1.2.13. The old naming convention was to
  159. use ttf/%d for the tty device and cuf/%d for the cua device. That
  160. has been changed to conform to an agreed-upon standard of placing
  161. all the tty devices under tts. The device names are now tts/F%d for
  162. the tty device and cua/F%d for the cua devices. If you were using
  163. the older devfs names, you must update for the newer convention.
  164. You do not need to run ip2mkdev if you are using devfs and only want to
  165. use the devfs native device names.
  166. 4. USING THE DRIVERS
  167. As noted above, the driver implements the ports in accordance with Linux
  168. conventions, and the devices should be interchangeable with the standard
  169. serial devices. (This is a key point for problem reporting: please make
  170. sure that what you are trying do works on the ttySx/cuax ports first; then
  171. tell us what went wrong with the ip2 ports!)
  172. Higher speeds can be obtained using the setserial utility which remaps
  173. 38,400 bps (extb) to 57,600 bps, 115,200 bps, or a custom speed.
  174. Intelliport II installations using the PowerPort expansion module can
  175. use the custom speed setting to select the highest speeds: 153,600 bps,
  176. 230,400 bps, 307,200 bps, 460,800bps and 921,600 bps. The base for
  177. custom baud rate configuration is fixed at 921,600 for cards/expansion
  178. modules with ST654's and 115200 for those with Cirrus CD1400's. This
  179. corresponds to the maximum bit rates those chips are capable.
  180. For example if the baud base is 921600 and the baud divisor is 18 then
  181. the custom rate is 921600/18 = 51200 bps. See the setserial man page for
  182. complete details. Of course if stty accepts the higher rates now you can
  183. use that as well as the standard ioctls().
  184. 5. ip2mkdev and assorted utilities...
  185. Several utilities, including the source for a binary ip2mkdev utility are
  186. available under .../drivers/char/ip2. These can be build by changing to
  187. that directory and typing "make" after the kernel has be built. If you do
  188. not wish to compile the binary utilities, the shell script below can be
  189. cut out and run as "ip2mkdev" to create the necessary device files. To
  190. use the ip2mkdev script, you must have procfs enabled and the proc file
  191. system mounted on /proc.
  192. You do not need to run ip2mkdev if you are using devfs and only want to
  193. use the devfs native device names.
  194. 6. DEVFS
  195. DEVFS is the DEVice File System available as an add on package for the
  196. 2.2.x kernels and available as a configuration option in 2.3.46 and higher.
  197. Devfs allows for the automatic creation and management of device names
  198. under control of the device drivers themselves. The Devfs namespace is
  199. hierarchical and reduces the clutter present in the normal flat /dev
  200. namespace. Devfs names and conventional device names may be intermixed.
  201. A userspace daemon, devfsd, exists to allow for automatic creation and
  202. management of symbolic links from the devfs name space to the conventional
  203. names. More details on devfs can be found on the DEVFS home site at
  204. <http://www.atnf.csiro.au/~rgooch/linux/> or in the file kernel
  205. documentation files, .../linux/Documentation/filesystems/devfs/README.
  206. If you are using devfs, existing devices are automatically created within
  207. the devfs name space. Normal devices will be tts/F0 - tts/F255 and callout
  208. devices will be cua/F0 - cua/F255. With devfs installed, ip2mkdev will
  209. create symbolic links in /dev from the old conventional names to the newer
  210. devfs names as follows:
  211. /dev/ip2ipl[n] -> /dev/ip2/ipl[n] n = 0 - 3
  212. /dev/ip2stat[n] -> /dev/ip2/stat[n] n = 0 - 3
  213. /dev/ttyF[n] -> /dev/tts/F[n] n = 0 - 255
  214. /dev/cuf[n] -> /dev/cua/F[n] n = 0 - 255
  215. Only devices for existing ports and boards will be created.
  216. IMPORTANT NOTE: The naming convention used for devfs by this driver
  217. was changed from 1.2.12 to 1.2.13. The old naming convention was to
  218. use ttf/%d for the tty device and cuf/%d for the cua device. That
  219. has been changed to conform to an agreed-upon standard of placing
  220. all the tty devices under tts. The device names are now tts/F%d for
  221. the tty device and cua/F%d for the cua devices. If you were using
  222. the older devfs names, you must update for the newer convention.
  223. You do not need to run ip2mkdev if you are using devfs and only want to
  224. use the devfs native device names.
  225. 7. NOTES
  226. This is a release version of the driver, but it is impossible to test it
  227. in all configurations of Linux. If there is any anomalous behaviour that
  228. does not match the standard serial port's behaviour please let us know.
  229. 8. ip2mkdev shell script
  230. Previously, this script was simply attached here. It is now attached as a
  231. shar archive to make it easier to extract the script from the documentation.
  232. To create the ip2mkdev shell script change to a convenient directory (/tmp
  233. works just fine) and run the following command:
  234. unshar Documentation/computone.txt
  235. (This file)
  236. You should now have a file ip2mkdev in your current working directory with
  237. permissions set to execute. Running that script with then create the
  238. necessary devices for the Computone boards, interfaces, and ports which
  239. are present on you system at the time it is run.
  240. #!/bin/sh
  241. # This is a shell archive (produced by GNU sharutils 4.2.1).
  242. # To extract the files from this archive, save it to some FILE, remove
  243. # everything before the `!/bin/sh' line above, then type `sh FILE'.
  244. #
  245. # Made on 2001-10-29 10:32 EST by <mhw@alcove.wittsend.com>.
  246. # Source directory was `/home2/src/tmp'.
  247. #
  248. # Existing files will *not* be overwritten unless `-c' is specified.
  249. #
  250. # This shar contains:
  251. # length mode name
  252. # ------ ---------- ------------------------------------------
  253. # 4251 -rwxr-xr-x ip2mkdev
  254. #
  255. save_IFS="${IFS}"
  256. IFS="${IFS}:"
  257. gettext_dir=FAILED
  258. locale_dir=FAILED
  259. first_param="$1"
  260. for dir in $PATH
  261. do
  262. if test "$gettext_dir" = FAILED && test -f $dir/gettext \
  263. && ($dir/gettext --version >/dev/null 2>&1)
  264. then
  265. set `$dir/gettext --version 2>&1`
  266. if test "$3" = GNU
  267. then
  268. gettext_dir=$dir
  269. fi
  270. fi
  271. if test "$locale_dir" = FAILED && test -f $dir/shar \
  272. && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  273. then
  274. locale_dir=`$dir/shar --print-text-domain-dir`
  275. fi
  276. done
  277. IFS="$save_IFS"
  278. if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
  279. then
  280. echo=echo
  281. else
  282. TEXTDOMAINDIR=$locale_dir
  283. export TEXTDOMAINDIR
  284. TEXTDOMAIN=sharutils
  285. export TEXTDOMAIN
  286. echo="$gettext_dir/gettext -s"
  287. fi
  288. if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then
  289. shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
  290. elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
  291. shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
  292. elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then
  293. shar_touch='touch -am $3$4$5$6$2 "$8"'
  294. else
  295. shar_touch=:
  296. echo
  297. $echo 'WARNING: not restoring timestamps. Consider getting and'
  298. $echo "installing GNU \`touch', distributed in GNU File Utilities..."
  299. echo
  300. fi
  301. rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
  302. #
  303. if mkdir _sh17581; then
  304. $echo 'x -' 'creating lock directory'
  305. else
  306. $echo 'failed to create lock directory'
  307. exit 1
  308. fi
  309. # ============= ip2mkdev ==============
  310. if test -f 'ip2mkdev' && test "$first_param" != -c; then
  311. $echo 'x -' SKIPPING 'ip2mkdev' '(file already exists)'
  312. else
  313. $echo 'x -' extracting 'ip2mkdev' '(text)'
  314. sed 's/^X//' << 'SHAR_EOF' > 'ip2mkdev' &&
  315. #!/bin/sh -
  316. #
  317. # ip2mkdev
  318. #
  319. # Make or remove devices as needed for Computone Intelliport drivers
  320. #
  321. # First rule! If the dev file exists and you need it, don't mess
  322. # with it. That prevents us from screwing up open ttys, ownership
  323. # and permissions on a running system!
  324. #
  325. # This script will NOT remove devices that no longer exist if their
  326. # board or interface box has been removed. If you want to get rid
  327. # of them, you can manually do an "rm -f /dev/ttyF* /dev/cuaf*"
  328. # before running this script. Running this script will then recreate
  329. # all the valid devices.
  330. #
  331. # Michael H. Warfield
  332. # /\/\|=mhw=|\/\/
  333. # mhw@wittsend.com
  334. #
  335. # Updated 10/29/2000 for version 1.2.13 naming convention
  336. # under devfs. /\/\|=mhw=|\/\/
  337. #
  338. # Updated 03/09/2000 for devfs support in ip2 drivers. /\/\|=mhw=|\/\/
  339. #
  340. X
  341. if test -d /dev/ip2 ; then
  342. # This is devfs mode... We don't do anything except create symlinks
  343. # from the real devices to the old names!
  344. X cd /dev
  345. X echo "Creating symbolic links to devfs devices"
  346. X for i in `ls ip2` ; do
  347. X if test ! -L ip2$i ; then
  348. X # Remove it incase it wasn't a symlink (old device)
  349. X rm -f ip2$i
  350. X ln -s ip2/$i ip2$i
  351. X fi
  352. X done
  353. X for i in `( cd tts ; ls F* )` ; do
  354. X if test ! -L tty$i ; then
  355. X # Remove it incase it wasn't a symlink (old device)
  356. X rm -f tty$i
  357. X ln -s tts/$i tty$i
  358. X fi
  359. X done
  360. X for i in `( cd cua ; ls F* )` ; do
  361. X DEVNUMBER=`expr $i : 'F\(.*\)'`
  362. X if test ! -L cuf$DEVNUMBER ; then
  363. X # Remove it incase it wasn't a symlink (old device)
  364. X rm -f cuf$DEVNUMBER
  365. X ln -s cua/$i cuf$DEVNUMBER
  366. X fi
  367. X done
  368. X exit 0
  369. fi
  370. X
  371. if test ! -f /proc/tty/drivers
  372. then
  373. X echo "\
  374. Unable to check driver status.
  375. Make sure proc file system is mounted."
  376. X
  377. X exit 255
  378. fi
  379. X
  380. if test ! -f /proc/tty/driver/ip2
  381. then
  382. X echo "\
  383. Unable to locate ip2 proc file.
  384. Attempting to load driver"
  385. X
  386. X if /sbin/insmod ip2
  387. X then
  388. X if test ! -f /proc/tty/driver/ip2
  389. X then
  390. X echo "\
  391. Unable to locate ip2 proc file after loading driver.
  392. Driver initialization failure or driver version error.
  393. "
  394. X exit 255
  395. X fi
  396. X else
  397. X echo "Unable to load ip2 driver."
  398. X exit 255
  399. X fi
  400. fi
  401. X
  402. # Ok... So we got the driver loaded and we can locate the procfs files.
  403. # Next we need our major numbers.
  404. X
  405. TTYMAJOR=`sed -e '/^ip2/!d' -e '/\/dev\/tt/!d' -e 's/.*tt[^ ]*[ ]*\([0-9]*\)[ ]*.*/\1/' < /proc/tty/drivers`
  406. CUAMAJOR=`sed -e '/^ip2/!d' -e '/\/dev\/cu/!d' -e 's/.*cu[^ ]*[ ]*\([0-9]*\)[ ]*.*/\1/' < /proc/tty/drivers`
  407. BRDMAJOR=`sed -e '/^Driver: /!d' -e 's/.*IMajor=\([0-9]*\)[ ]*.*/\1/' < /proc/tty/driver/ip2`
  408. X
  409. echo "\
  410. TTYMAJOR = $TTYMAJOR
  411. CUAMAJOR = $CUAMAJOR
  412. BRDMAJOR = $BRDMAJOR
  413. "
  414. X
  415. # Ok... Now we should know our major numbers, if appropriate...
  416. # Now we need our boards and start the device loops.
  417. X
  418. grep '^Board [0-9]:' /proc/tty/driver/ip2 | while read token number type alltherest
  419. do
  420. X # The test for blank "type" will catch the stats lead-in lines
  421. X # if they exist in the file
  422. X if test "$type" = "vacant" -o "$type" = "Vacant" -o "$type" = ""
  423. X then
  424. X continue
  425. X fi
  426. X
  427. X BOARDNO=`expr "$number" : '\([0-9]\):'`
  428. X PORTS=`expr "$alltherest" : '.*ports=\([0-9]*\)' | tr ',' ' '`
  429. X MINORS=`expr "$alltherest" : '.*minors=\([0-9,]*\)' | tr ',' ' '`
  430. X
  431. X if test "$BOARDNO" = "" -o "$PORTS" = ""
  432. X then
  433. # This may be a bug. We should at least get this much information
  434. X echo "Unable to process board line"
  435. X continue
  436. X fi
  437. X
  438. X if test "$MINORS" = ""
  439. X then
  440. # Silently skip this one. This board seems to have no boxes
  441. X continue
  442. X fi
  443. X
  444. X echo "board $BOARDNO: $type ports = $PORTS; port numbers = $MINORS"
  445. X
  446. X if test "$BRDMAJOR" != ""
  447. X then
  448. X BRDMINOR=`expr $BOARDNO \* 4`
  449. X STSMINOR=`expr $BRDMINOR + 1`
  450. X if test ! -c /dev/ip2ipl$BOARDNO ; then
  451. X mknod /dev/ip2ipl$BOARDNO c $BRDMAJOR $BRDMINOR
  452. X fi
  453. X if test ! -c /dev/ip2stat$BOARDNO ; then
  454. X mknod /dev/ip2stat$BOARDNO c $BRDMAJOR $STSMINOR
  455. X fi
  456. X fi
  457. X
  458. X if test "$TTYMAJOR" != ""
  459. X then
  460. X PORTNO=$BOARDBASE
  461. X
  462. X for PORTNO in $MINORS
  463. X do
  464. X if test ! -c /dev/ttyF$PORTNO ; then
  465. X # We got the hardware but no device - make it
  466. X mknod /dev/ttyF$PORTNO c $TTYMAJOR $PORTNO
  467. X fi
  468. X done
  469. X fi
  470. X
  471. X if test "$CUAMAJOR" != ""
  472. X then
  473. X PORTNO=$BOARDBASE
  474. X
  475. X for PORTNO in $MINORS
  476. X do
  477. X if test ! -c /dev/cuf$PORTNO ; then
  478. X # We got the hardware but no device - make it
  479. X mknod /dev/cuf$PORTNO c $CUAMAJOR $PORTNO
  480. X fi
  481. X done
  482. X fi
  483. done
  484. X
  485. Xexit 0
  486. SHAR_EOF
  487. (set 20 01 10 29 10 32 01 'ip2mkdev'; eval "$shar_touch") &&
  488. chmod 0755 'ip2mkdev' ||
  489. $echo 'restore of' 'ip2mkdev' 'failed'
  490. if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  491. && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
  492. md5sum -c << SHAR_EOF >/dev/null 2>&1 \
  493. || $echo 'ip2mkdev:' 'MD5 check failed'
  494. cb5717134509f38bad9fde6b1f79b4a4 ip2mkdev
  495. SHAR_EOF
  496. else
  497. shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'ip2mkdev'`"
  498. test 4251 -eq "$shar_count" ||
  499. $echo 'ip2mkdev:' 'original size' '4251,' 'current size' "$shar_count!"
  500. fi
  501. fi
  502. rm -fr _sh17581
  503. exit 0