我有那种可以与虚拟盒一起使用的脚本,但是现在我不知道新的Mounttype
?
脚本如下:
#!/bin/sh
#
# mount & copy - Mount the Virtualbox shared folder and copy files to PC
Mounttype=vboxsf #mount for gdrive??
Mountname= ????? #mountname ?
Mountpoint=/home/james/gdrive/OpenWrt_builds/IPQ806X_master
BinDir=bin/targets/ipq806x/generic
echo Check for existing mount of the shared folder $Mountpoint
df | grep $Mountpoint
if [ "$?" -ne 0 ]; then
echo Mounting $Mountpoint as $Mountname...
sudo mount -t $Mounttype $Mountname $Mountpoint
[ "$?" -ne 0 ] && echo "Sudo/mount failed." && exit 1
fi
echo "\nCopy from $PWD ..."
cp $BinDir/*bin $Mountpoint
sleep 2
cp $BinDir/*img $Mountpoint
sleep 2
cp $BinDir/ath10k* $Mountpoint
sleep 1
cp $BinDir/*patch $Mountpoint
sleep 1
cp $BinDir/*sh $Mountpoint
sleep 1
cp $BinDir/*txt $Mountpoint
sleep 1
cp $BinDir/*config.init $Mountpoint
cp $BinDir/*config $Mountpoint
echo done.
我将挂载点更改为我的 gdrive 位置,但需要更改挂载类型,这是我的问题。