//修改网络 vi /etc/network/interfaces //修改密码 passwd root //添加文件夹 mkdir ~/ftp //添加开机自启动 vi /etc/init.d/apprun ln -s /etc/init.d/apprun /etc/rc5.d/S68appgo chmod 755 /etc/rc5.d/S68appgo #!/bin/sh # # start/stop app daemon. ### BEGIN INIT INFO # Provides: app # Required-Start: $network # Required-Stop: $network # Default-Start: S 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: app daemon # Description: app is a daemon used to enable NFC features ### END INIT INFO chmod 755 /home/root/ftp/app #设置app 所在目录 DAEMON=/home/root/ftp/app PIDFILE=/var/run/app.pid DESC="Linux app daemon for firets" if [ -f /etc/default/app ] ; then . /etc/default/app fi set -e do_start() { $DAEMON > /dev/null 2>&1 & } do_stop() { start-stop-daemon --stop --name app --quiet } case "$1" in start) echo "Starting $DESC" do_start ;; stop) echo "Stopping $DESC" do_stop ;; restart|force-reload) echo "Restarting $DESC" do_stop sleep 1 do_start ;; *) echo "Usage: $0 {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0
IM6UL 设置记录
Leave a reply