Last active
June 27, 2018 20:29
-
-
Save hubutui/2973b7fe9a3e9d8ff98f to your computer and use it in GitHub Desktop.
为 openwrt 写的启动脚本, 放在 /etc/init.d/ 目录下, /etc/init.d/ start 即可启动, 但是不知道为什么 /etc/init.d/ enable 之后还是不能够开机启动.... 不过也算能用了. 可以根据需要配合另外一个脚本 /etc/init.d/amuleweb.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
# start up for amuled | |
# Copyright (c) 2015 | |
# darcy <hot123tea123@gmail.com> | |
# this script must be started before amuleweb | |
START=91 | |
start() { | |
echo "amuled started" | |
amuled --config-dir=/root/.aMule/ -f & | |
} | |
stop() { | |
echo "amuled stop" | |
killall -9 amuled | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment