Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37241
[ -n "$USE_PROCD" ] && {
. $IPKG_INSTROOT/lib/functions/procd.sh
-
+ basescript=$(readlink "$initscript")
rc_procd() {
- procd_open_service "$(basename "$initscript")" "$initscript"
+ procd_open_service "$(basename ${basescript:-$initscript})" "$initscript"
"$@"
procd_close_service
}
}
stop() {
- procd_kill "$(basename "$initscript")" "$1"
+ procd_kill "$(basename ${basescript:-$initscript})" "$1"
}
reload() {