Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MetObs
AossCeilo
Commits
48faa2bd
Verified
Commit
48faa2bd
authored
May 24, 2021
by
David Hoese
Browse files
Add some more error checking to ceilo driver install script
parent
4e59eb67
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/reinstall_ceilo_driver.sh
View file @
48faa2bd
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment