#!/bin/csh #------------------------------------------------------------------------------ # History: # # 14-Dec-1998 Simone Magri Original script # 26-Oct-1999 Simone Magri a) embellished seterial comment, # reduces confusion # b) short term lba_das.exe+das existance fix # c) setserial outputs appropriate config message # 28-Oct-1999 Simone Magri DataSet device file creation if necessary # 22-Feb-1998 Simone Magri a) force module to load if kernel .z # version mismatch (where version = x.y.z) # b) /dev/cua1->/dev/ttyS1 for fwd compatibility # 06-Aug-2007 Simone Magri fixed for 2.6.x (ds.ko) and tidy up # 19-Oct-2007 Simone Magri use irq and port parameters if necessary and # fix setserial invocation # 17-Dec-2007 Chris Phillips Clean up and use modprobe # #------------------------------------------------------------------------------ if (! -e /dev/ds0) then echo "Creating DataSet device file" mknod -m 666 /dev/ds0 c 60 0 endif echo "Loading ATNF Data Set driver module..." # # Disables user mode access of the uart, with respect to its interrupt # and io-region used; via the serial driver. Note that on rgooch linux # rc.serial configures the serial ports and gives uspace access to port. # setserial /dev/ttyS0 uart none setserial -g /dev/ttyS0 # !wrks on debian etch setserial -bg /dev/ttyS0 # Load load the module modprobe ds