Skip to content

Instantly share code, notes, and snippets.

Last active June 27, 2018 20:29
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 <>
# this script must be started before amuleweb
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