base-files: run readlink on initscript name before opening services
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37241
This commit is contained in:
parent
523114e741
commit
06ae364c3d
1 changed files with 3 additions and 3 deletions
|
@ -90,9 +90,9 @@ ${INIT_TRACE:+set -x}
|
||||||
|
|
||||||
[ -n "$USE_PROCD" ] && {
|
[ -n "$USE_PROCD" ] && {
|
||||||
. $IPKG_INSTROOT/lib/functions/procd.sh
|
. $IPKG_INSTROOT/lib/functions/procd.sh
|
||||||
|
basescript=$(readlink "$initscript")
|
||||||
rc_procd() {
|
rc_procd() {
|
||||||
procd_open_service "$(basename "$initscript")" "$initscript"
|
procd_open_service "$(basename ${basescript:-$initscript})" "$initscript"
|
||||||
"$@"
|
"$@"
|
||||||
procd_close_service
|
procd_close_service
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ ${INIT_TRACE:+set -x}
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
procd_kill "$(basename "$initscript")" "$1"
|
procd_kill "$(basename ${basescript:-$initscript})" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
|
|
Loading…
Reference in a new issue