projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/package/base-files/files/etc/rc.common
b/package/base-files/files/etc/rc.common
index
7180b0f
..
5d9ee86
100755
(executable)
--- a/
package/base-files/files/etc/rc.common
+++ b/
package/base-files/files/etc/rc.common
@@
-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.