|
|
|
@ -41,6 +41,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 +82,7 @@ eval "case \"\$action\" in |
|
|
|
|
boot) boot;; |
|
|
|
|
shutdown) shutdown;; |
|
|
|
|
enable) enable;; |
|
|
|
|
enabled) enabled;; |
|
|
|
|
disable) disable;; |
|
|
|
|
$cmds |
|
|
|
|
*) help;; |
|
|
|
|