#!/bin/sh # # Startup script for PCTEL modem modules # # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Starting pctel: " insmod -f pctel insmod -f ptserial echo done ;; stop) echo -n "Shutting down pctel: " modprobe -r ptserial modprobe -r pctel echo done ;; status) ;; restart) $0 stop $0 start ;; *) echo "Usage: pctel {start|stop|restart|status}" exit 1 esac exit 0