Run load_rc_config before stop_cmd definition, so that ${quotaoff_flags}

is correctly expanded inside stop_cmd instead of getting nothing.

PR:		conf/157687
Reported by:	Dmitry Banschikov <d.banschikov peterhost ru>
MFC after:	1 week
This commit is contained in:
Sergey Kandaurov 2011-06-28 14:26:34 +00:00
parent a7e048a23f
commit 1bb5e90ffd

View File

@ -14,6 +14,7 @@
name="quota"
rcvar=`set_rcvar`
load_rc_config $name
start_cmd="quota_start"
stop_cmd="/usr/sbin/quotaoff ${quotaoff_flags}"
@ -30,5 +31,4 @@ quota_start()
echo ' done.'
}
load_rc_config $name
run_rc_command "$1"