well I have already found how to ask my question
this is the script with smb direction
curl -L -u Domain\user:passwd smb://192.168.1.9/descarga/xenialokrock64.img.xz | unxz -c > /dev/mmcblk0
thanks
And another question if is a xxxx.img how can i write the script ? Because unxz gives a error
this is the script with smb direction
curl -L -u Domain\user:passwd smb://192.168.1.9/descarga/xenialokrock64.img.xz | unxz -c > /dev/mmcblk0
thanks
And another question if is a xxxx.img how can i write the script ? Because unxz gives a error