aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2005-12-20 23:22:47 +0000
committerDoug Barton <dougb@FreeBSD.org>2005-12-20 23:22:47 +0000
commit2092fca9810ea1a49deb19134d86807e801e69c9 (patch)
treeaf95a15b1c1e0ce686a74a43f7b8e1d0ad04ddbb /etc
parent612477f7ac2e8bea5ca582bcb878b5365a68ebdc (diff)
Notes
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/cleartmp7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.d/cleartmp b/etc/rc.d/cleartmp
index aa75a14444ad..0df70a27cc49 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"