⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mux.d

📁 该源码是针对支持Mux技术的手机Modem的驱动
💻 D
字号:
#!/bin/bash## Sample startup script for the gsmMuxd## chkconfig: 2345 94 11# description: gsmMuxd is serial line multiplexer## processname: gsmMuxd# Source function library.. /etc/init.d/functions# Path to mobilegw binary, and short-form for messagesgsmMuxExe=/usr/sbin/gsmMuxdexecutable=gsmMuxdprog=gsmMuxdRETVAL=0OPTIONS="-p /dev/ttyUSB5 -w -r -s /dev/mux /dev/ptmx /dev/ptmx /dev/ptmx"#OPTIONS="-p /dev/ttyS0    -w -r -s /dev/mux /dev/ptmx /dev/ptmx /dev/ptmx"# Functionsstart() {        # See if it's already running.        pid=`pidofproc $executable`        if [ -n "$pid" ] && ps h $pid >/dev/null 2>&1; then	    echo -n "Starting gsmMux"	    echo_failure	    echo	    return	fi  	        action "Starting gsmMux " $gsmMuxExe $OPTIONS        RETVAL=$?        touch /var/lock/subsys/gsmMuxd0	echo                  return $RETVAL}stop() {        echo -n "Stopping gsmMux"	killproc $gsmMuxExe	RETVAL=$?	rm -f /var/lock/sybsys/gsmMuxd0	echo}# See how we were called.case "$1" in  start)	start	;;  stop)	stop	;;  status)        status $gsmMuxExe	RETVAL=$?	;;  restart)	stop	start	;;  condrestart)        stop        start	;;  *)	echo $"Usage: $prog {start|stop|restart|condrestart|status}"	exit 1esacexit $RETVAL

⌨️ 快捷键说明

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