upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / base-files / files / etc / rc.common
index 7180b0f..5d9ee86 100755 (executable)
@@ -18,6 +18,7 @@ reload() {
 }
 
 restart() {
+       trap '' TERM
        stop
        start
 }
@@ -41,6 +42,11 @@ enable() {
        ln -s "/etc/init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}"
 }
 
+enabled() {
+       name="$(basename "${initscript}")"
+       [ -x "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}" ]
+}
+
 depends() {
        return 0
 }
@@ -77,6 +83,7 @@ eval "case \"\$action\" in
        boot) boot;;
        shutdown) shutdown;;
        enable) enable;;
+       enabled) enabled;;
        disable) disable;;
        $cmds
        *) help;;
This page took 0.025439 seconds and 4 git commands to generate.