#!/usr/bin/kermit + .LOGFILE := \v(home)kermit-log/kermit_\v(ndate)_\v(ntime).log set carrier-watch off log session \m(LOGFILE) if = \v(argc) 2 { .DEVICE = /dev/ttyUSB0 .SPEED = 9600 .PARITY = none switch \%1 { :cisco .FLOWCONTROL = none break :cisco-usb .DEVICE = /dev/ttyACM0 .FLOWCONTROL = rts/cts break :ap .FLOWCONTROL = none break :hp .SPEED = 38400 .FLOWCONTROL = xon/xoff break :enterasys .SPEED = 9600 .FLOWCONTROL = none break :3com .SPEED = 19200 .FLOWCONTROL = none break :mikrotik .SPEED = 115200 .FLOWCONTROL = none break } echo ********************************************************** echo * DEVICE: \m(DEVICE) echo * SPEED : \m(SPEED) echo * FLOW : \m(FLOWCONTROL) echo * LOG : \m(LOGFILE) echo ********************************************************** set line \m(DEVICE) if fail exit 1 set speed \m(SPEED) set flow-control \m(FLOWCONTROL) set parity \m(PARITY) }