Since commit 2ed5144 "base-files: warn when calling /etc/init.d/<script> enable and neither START nor STOP is defined", there is no need to specify the sequence number in the service script file name.
Signed-off-by: Yousong Zhou <yszhou4t...@gmail.com> --- package/base-files/files/etc/rc.common | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common index 1984db9..b037cfd 100755 --- a/package/base-files/files/etc/rc.common +++ b/package/base-files/files/etc/rc.common @@ -47,13 +47,13 @@ enable() { echo "/etc/init.d/$name does not have a START or STOP value" return 1 } - [ "$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]}" + [ "$START" ] && ln -s "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name}" + [ "$STOP" ] && ln -s "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${STOP}${name}" } enabled() { name="$(basename "${initscript}")" - [ -x "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}" ] + [ -x "$IPKG_INSTROOT/etc/rc.d/S${START}${name}" ] } depends() { -- 1.7.2.5 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel