Modified way in which $NETMOUNT_USERCONF is read (from straight cat to tr -d '\r') to allow for config files with Windows line-endings.

This commit is contained in:
MilhouseVH 2011-05-23 05:11:02 -07:00 committed by Stephan Raue
parent 02c2eff4bc
commit 1611c181d4

2
packages/network/netmount/scripts/netmount Executable file → Normal file
View File

@ -28,7 +28,7 @@ if [ -f "$NETMOUNT_USERCONF" ]; then
IFS="
"
for i in `cat $NETMOUNT_USERCONF |grep -v "^#"`; do
for i in `tr -d '\r' < $NETMOUNT_USERCONF |grep -v "^#"`; do
SERVICE=`echo $i | awk -F\| '{print $1}' | sed 's/^[ \t]*//;s/[ \t]*$//'`
SHARE=`echo $i | awk -F\| '{print $2}' | sed 's/^[ \t]*//;s/[ \t]*$//'`
MOUNTPOINT=`echo $i | awk -F\| '{print $3}' | sed 's/^[ \t]*//;s/[ \t]*$//'`