Skip to content

Instantly share code, notes, and snippets.

@hubutui
Last active Jun 27, 2018
Embed
What would you like to do?
为 openwrt 写的启动脚本, 放在 /etc/init.d/ 目录下, /etc/init.d/ start 即可启动, 但是不知道为什么 /etc/init.d/ enable 之后还是不能够开机启动.... 不过也算能用了. 可以根据需要配合另外一个脚本 /etc/init.d/amuleweb.
#!/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