projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base-files: run readlink on initscript name before opening services
[openwrt.git]
/
package
/
base-files
/
files
/
etc
/
rc.common
diff --git
a/package/base-files/files/etc/rc.common
b/package/base-files/files/etc/rc.common
index
78e2dd4
..
aeec90c
100755
(executable)
--- a/
package/base-files/files/etc/rc.common
+++ b/
package/base-files/files/etc/rc.common
@@
-90,9
+90,9
@@
${INIT_TRACE:+set -x}
[ -n "$USE_PROCD" ] && {
. $IPKG_INSTROOT/lib/functions/procd.sh
[ -n "$USE_PROCD" ] && {
. $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() {