base-files: add enabled commands to service rc.common
[openwrt/.git] / package / base-files / files / etc / rc.common
index d3fa3be5058dcdd146bfaa5afa63b1fe77dabeff..7c11544405f56be8cc5644c579cb178685857eb6 100755 (executable)
@@ -73,6 +73,7 @@ Available commands:
        reload  Reload configuration files (or restart if service does not implement reload)
        enable  Enable service autostart
        disable Disable service autostart
        reload  Reload configuration files (or restart if service does not implement reload)
        enable  Enable service autostart
        disable Disable service autostart
+       enabled Check if service is started on boot
 $EXTRA_HELP
 EOF
 }
 $EXTRA_HELP
 EOF
 }
@@ -109,7 +110,7 @@ ${INIT_TRACE:+set -x}
        EXTRA_HELP="\
        running Check if service is running
        status  Service status
        EXTRA_HELP="\
        running Check if service is running
        status  Service status
-       "
+${EXTRA_HELP}"
 
        . $IPKG_INSTROOT/lib/functions/procd.sh
        basescript=$(readlink "$initscript")
 
        . $IPKG_INSTROOT/lib/functions/procd.sh
        basescript=$(readlink "$initscript")