3 # mount & copy - Mount the Virtualbox shared folder and copy files to PC
7 Mountpoint=/media/windows-share
8 BinDir=bin/targets/ipq806x/generic
10 echo Check for existing mount of the shared folder $Mountpoint
12 if [ "$?" -ne 0 ]; then
13 echo Mounting $Mountpoint as $Mountname...
14 sudo mount -t $Mounttype $Mountname $Mountpoint
15 [ "$?" -ne 0 ] && echo "Sudo/mount failed." && exit 1
18 echo "\nCopy from $PWD ..."
19 cp $BinDir/*tar $Mountpoint
21 cp $BinDir/*img $Mountpoint
23 cp $BinDir/*patch $Mountpoint
25 cp $BinDir/*sh $Mountpoint
27 cp $BinDir/*manifest $Mountpoint
29 cp $BinDir/*txt $Mountpoint
31 cp $BinDir/*config* $Mountpoint