diff options
author | dougb <dougb@FreeBSD.org> | 2005-12-20 23:22:47 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2005-12-20 23:22:47 +0000 |
commit | d2867372db4a0bb25453f61cc9fb24c604a0f8fb (patch) | |
tree | af95a15b1c1e0ce686a74a43f7b8e1d0ad04ddbb | |
parent | 23f40e29406831572bddf46c25a05d69067a1865 (diff) | |
download | FreeBSD-src-d2867372db4a0bb25453f61cc9fb24c604a0f8fb.zip FreeBSD-src-d2867372db4a0bb25453f61cc9fb24c604a0f8fb.tar.gz |
Include a somewhat hackish way to make sure that we *always* test the
new clear_tmp_X variable when start'ing.
-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" |