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() {
 }
 
 restart() {
+       trap '' TERM
        stop
        start
 }
        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]}"
 }
 
        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
 }
 depends() {
        return 0
 }
@@ -77,6 +83,7 @@ eval "case \"\$action\" in
        boot) boot;;
        shutdown) shutdown;;
        enable) enable;;
        boot) boot;;
        shutdown) shutdown;;
        enable) enable;;
+       enabled) enabled;;
        disable) disable;;
        $cmds
        *) help;;
        disable) disable;;
        $cmds
        *) help;;
This page took 0.020163 seconds and 4 git commands to generate.