X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6762e5d4cc62a85ee750419aec83d8b64ab59a63..8f53d03355013cd750d3c3bc7699b52efb2c598f:/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 99e2a5db6..4f1a4a3a0 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -17,12 +17,12 @@ reload() { restart() { trap '' TERM - stop - start + stop "$@" + start "$@" } boot() { - start + start "$@" } shutdown() { @@ -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() {