Results 1 to 1 of 1
ok say I'd like to add a line in /etc/network/interface , and create an executable script called mountsmbfs.sh , do you think something like this would work , and can ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-17-2006 #1
- Join Date
- Mar 2006
script to mount samba shares , guidance plz
overall requirements, after wlan0 is up, check status to ensure it's functional, also check what the SSID is so I don't try to mount shares when I'm on a differnet AP, then mount shares and exit
# The loopback interface iface lo inet loopback # The first network card iface wlan0 inet dhcp pre-up wpa_supplicant -i wlan0 -D hostap -c /etc/wpa_supplicant.conf pre-up sleep 5 post-up /<pathtoscript>/mountsmbfs.shCode:
#! /bin/bash X="up" Y="MyWAPname" if [$X == wlan0 status && $Y == $SSID #not sure how to do this yet];then mount -t smbfs //servername/sharename /mountdirectory > credentials=/home/myhomedirectory/.smbpasswd dmask=777 fmask=777 else null fi exit
If anyone else has a better idea that would be great
Thanks in Advance