then create file e.g. connect.sh and make it executable
============================================================
#!/bin/bash
sudo mkdir /home/ubuntu/drive_p
# unmount previously-mounted drive
sudo umount /home/ubuntu/drive_p
sudo smbmount "//192.168.1.11/wdtv_data" /home/ubuntu/drive_p -o username=default,password=default,uid=999,gid=999
============================================================
uid can be found using 'id' command.
No comments:
Post a Comment