?? mux.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 + -