Commit ee77cd2f authored by Dan Reading's avatar Dan Reading
Browse files

if the WriteCacheEnable is found to be off then turn it on

parent 16ed1edb
......@@ -524,6 +524,7 @@ getwcache() {
res="enabled"
elif [ "${x/off}" != "$x" ] ; then
res="disabled"
hdparm -W1 $1 > /dev/null 2>&1
fi
fi
else
......@@ -532,6 +533,7 @@ getwcache() {
res="enabled"
elif [ "${x/Disabled}" != "$x" ] ; then
res="disabled"
$smtcl --set=wcache,on $1 > /dev/null 2>&1
fi
fi
fi
......@@ -547,6 +549,7 @@ getwcache() {
res="enabled"
elif [ "${x/0}" != "$x" ] ; then
res="disabled"
/usr/local/etc/emulab/camwce on $sd > /dev/null 2>&1
fi
fi
else
......@@ -555,6 +558,7 @@ getwcache() {
res="enabled"
elif [ "${x/Disabled}" != "$x" ] ; then
res="disabled"
$smtcl --set=wcache,on $1 > /dev/null 2>&1
fi
fi
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment