Update mount-smb.sh
#!/bin/bash
BASEDIR=/data/library/music
for m in `cat /etc/smbmounts.conf | grep -v ^#`; do
- dir=`echo $m | awk -F, '{print $1}'`
+ dir=`echo $m | awk -F\; '{print $1}'`
if [ ! -d $BASEDIR/$dir ]; then
mkdir -p $BASEDIR/$dir
fi
# Check if share is on a .local host, resolve this first
- HOST=`echo $m | awk -F, '{print $2}' | awk -F\/ '{print $3}'`
+ HOST=`echo $m | awk -F\; '{print $2}' | awk -F\/ '{print $3}'`
if [[ $HOST == *.local ]]; then
IP=`avahi-resolve-host-name $HOST | awk '{print $2}'`
if [ "$IP" != "" ]; then
