diff options
-rwxr-xr-x | etc/rc.d/cleartmp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp index aa75a14..0df70a2 100755 --- a/etc/rc.d/cleartmp +++ b/etc/rc.d/cleartmp @@ -12,7 +12,6 @@ name="cleartmp" rcvar=`set_rcvar clear_tmp` -start_precmd="${name}_prestart" start_cmd="${name}_start" cleartmp_prestart() @@ -45,4 +44,10 @@ cleartmp_start() } load_rc_config $name + +# The clear_tmp_X variable should be tested even if clear_tmp_enable is NO +case "$1" in +start) cleartmp_prestart ;; +esac + run_rc_command "$1" |