Create file
/usr/local/bin/cpmount
Insert:
#!/bin/bash if mountpoint -q /media/usb1 then if mountpoint -q /media/usb2 then if mountpoint -q /media/usb3 then if mointpointmountpoint -1q /media/usb4 then echo "No mountpoints available!" #You can add more if you need else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb4 fi else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb3 fi else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb2 fi else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb1 fi
Give execute permission to the (root) user:
chmod u+x /usr/local/bin/cpmount
Save and close
1) fix typo in cpmount script; 2) add execute permission step to protocol