Commit ad0a64ec authored by Richard RANDRIATOAMANANA's avatar Richard RANDRIATOAMANANA 💬
Browse files

Update userdata-mountpoint.sh

parent 42740286
......@@ -5,7 +5,7 @@ export MOUNTPOINT=/opt/data
[ ! -d $MOUNTPOINT ] && sudo mkdir -p $MOUNTPOINT 2>/dev/null
# add in fstab disk mount point
if [[ `dmesg | grep -Ei '[sv]db' | grep 'Attached'` ]]; then
if [ -z "`grep $DEV /etc/fstab 2>/dev/null`" ]; then
if [[ -z "`grep $DEV /etc/fstab 2>/dev/null`" ]]; then
sudo sh -c "echo '${DEV}1 $MOUNTPOINT ext4 defaults 0 0' >> /etc/fstab"
sudo mount -a
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