/etc/init.d/scst: Use the -noprompt option of scstadmin instead of "echo y |".

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-07-18 07:46:17 +00:00
parent c972696b3b
commit a2186fddc0

View File

@@ -149,7 +149,7 @@ stop() {
# Clear the config in case unloading failed or SCST has been built into the
# kernel
if [ -e /sys/module/scst ]; then
echo y | scstadmin -clear_config -force >/dev/null 2>&1
scstadmin -noprompt -force -clear_config >/dev/null 2>&1
fi
return 0