#!/bin/sh
#进行windows paths目录同步
cd /mnt str="//10.33.4.199/linux"
result=$(df | grep ${str} )
if [[ "$result" != "" ]]
then
echo "/mnt/patches 已成功挂载到//10.33.4.199/linux"
else
echo "正在进行/mnt/patches挂载//10.33.4.199/linux"
mount -t cifs -o username="administrator",password="hxsd@123" //10.33.4.199/linux /mnt/patches
fi
05-08 08:07