Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # script for mount SMB shares (mostly) automatically for the firetv
- # this script will only work from a linux terminal with adb in its path
- #set vars, duplicate using same syntax for future shares updating all variables in new stanzas to reflect
- #[share1]
- ftvip='192.168.1.249' #ip address of firetv
- share1_ip='192.168.1.67' #ip address of samba server
- share1_smb='photos' #samba share name
- share1_path='/mnt/obb/photos/' #mount point for share, include trailing /
- share1_usn='username' #username for share access
- share1_pwd='topsecretpw' #password for share access
- adb connect $ftvip
- sleep 3
- adb shell "su -c mkdir $share1_path"
- adb shell "su -c mount -o noperm,unc=\\\\\\\\\\\\\\\\$share1_ip\\\\\\\\$share1_smb,username=$share1_usn,password=$share1_pwd -t cifs none $share1_path"
- #wtf is this, why do we need so many slashes thats retarded lets figure out a better way to clean this
- #[share2]
- ftvip='192.168.1.249' #ip address of firetv
- share2_ip='192.168.1.67' #ip address of samba server
- share2_smb='roms' #samba share name
- share2_path='/mnt/obb/roms/' #mount point for share, include trailing /
- share2_usn='username' #username for share access
- share2_pwd='topsecretpw' #password for share access
- adb connect $ftvip
- sleep 3
- adb shell "su -c mkdir $share2_path"
- adb shell "su -c mount -o noperm,unc=\\\\\\\\\\\\\\\\$share2_ip\\\\\\\\$share2_smb,username=$share2_usn,password=$share2_pwd -t cifs none $share2_path"
- #wtf is this, why do we need so many slashes thats retarded lets figure out a better way to clean this
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement