laddie

来自「Linux嵌入式设计配套光盘,学习嵌入式设计可参考」· 代码 · 共 59 行

TXT
59
字号
#!/bin/bash# Start or stop all components of the Laddie appliance.  This script is not# used at startup; it is intended as a convenient way to stop and then restart# the appliance when experimenting with code changes.. /etc/sysconfig/rc. $rc_functionscase "$1" in  start)    echo "Starting the Laddie appliance..."    # Invoke the Laddie startup scripts (range 50 - 69).    cd /etc/rc.d/rc3.d    for script in $(ls S[5-6]*) ; do      ./$script start      sleep 1    done    # Start the framebuffer UI after the appliance daemons.    /opt/laddie/bin/fbmenuctl start  ;;  stop)    echo "Stopping the Laddie appliance..."    # Invoke the Laddie shutdown scripts (range 50 - 69).    cd /etc/rc.d/rc0.d    /opt/laddie/bin/fbmenuctl stop    for script in $(ls K[5-6]*) ; do      sleep 1      ./$script stop    done  ;;  status)    # Invoke the Laddie startup scripts (range 50 - 69) and check status.    cd /etc/rc.d/rc3.d    for script in $(ls S[5-6]*) ; do      ./$script status    done    /opt/laddie/bin/fbmenuctl status  ;;  *)    echo "Usage: $0 {start|stop|status}"    exit 1    ;;esac

⌨️ 快捷键说明

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