Verified Commit 48faa2bd authored by David Hoese's avatar David Hoese
Browse files

Add some more error checking to ceilo driver install script

parent 4e59eb67
......@@ -4,6 +4,11 @@
# communicated with. This should be run on reboot as the driver seems to
# have trouble with kernel updates and maybe even reboots of the server.
oops() {
echo "ERROR: $*"
exit 1
}
if [ $UID -ne 0 ]; then
echo "ERROR: This script must be run as root (UID 0)."
exit 1
......@@ -44,11 +49,11 @@ EOF
)
# Add the server
cd $DRIVER_DST
cd $DRIVER_DST || oops "Driver install directory doesn't exist"
./mxaddsvr 192.168.16.27 4
status=$?
if [ $? -ne 0]; then
if [ $? -ne 0 ]; then
echo "ERROR: Could not install driver"
exit 1
fi
\ No newline at end of file
Markdown is supported
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