hzone=`df -k /home|sed -n ‘2p’|awk ‘{print $4}’`
ozone=`df -k /opt|sed -n ‘2p’|awk ‘{print $4}’`
if [ $hzone -gt $ozone ];then
mkdir /home/broom
else
mkdir /opt/broom
ln -sf /opt/broom /home/broom
fi

哟?不错哎 订阅小米的RSS Feeds 回去慢慢看^_^