Skip to content
Snippets Groups Projects
Verified Commit a66e7dc4 authored by David Hoese's avatar David Hoese
Browse files

Fix driver reinstall not handling tmpwatch

parent 631899a7
No related branches found
No related tags found
No related merge requests found
......@@ -21,14 +21,17 @@ if [ ! -f $TARBALL ]; then
fi
SRC_DIR="/tmp/moxa"
if [ ! -d $SRC_DIR ]; then
if [ -d $SRC_DIR ]; then
# remove old extract and always re-extract
rm -rf /tmp/moxa
fi
cd `dirname $SRC_DIR`
tar -xzf $TARBALL
if [ ! -d $SRC_DIR ]; then
echo "ERROR: Could not extract moxa drivers"
exit 1
fi
fi
DRIVER_DST="/usr/lib/npreal2/driver"
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment