summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-09-23 12:35:34 +0000
committerNicolas Thill <nico@openwrt.org>2008-09-23 12:35:34 +0000
commit7218e6326f28abfd099030ffbdb6913569c95e94 (patch)
tree016b55bc19d837284182058bf263a190a85c23f5 /package/base-files
parentc6aaa353b13c1c15588de430b76cc9143582db4d (diff)
downloadmtk-20170518-7218e6326f28abfd099030ffbdb6913569c95e94.zip
mtk-20170518-7218e6326f28abfd099030ffbdb6913569c95e94.tar.gz
mtk-20170518-7218e6326f28abfd099030ffbdb6913569c95e94.tar.bz2
make links to statup scripts in /etc/rc.d relative
SVN-Revision: 12659
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/rc.common4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common
index 6b3c213..4f1a4a3 100755
--- a/package/base-files/files/etc/rc.common
+++ b/package/base-files/files/etc/rc.common
@@ -38,8 +38,8 @@ disable() {
enable() {
name="$(basename "${initscript}")"
disable
- [ "$START" ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
- [ "$STOP" ] && ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${STOP}${name##K[0-9][0-9]}"
+ [ "$START" ] && ln -s "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
+ [ "$STOP" ] && ln -s "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${STOP}${name##K[0-9][0-9]}"
}
enabled() {