mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
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:
parent
02c2eff4bc
commit
1611c181d4
2
packages/network/netmount/scripts/netmount
Executable file → Normal file
2
packages/network/netmount/scripts/netmount
Executable file → Normal 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]*$//'`
|
||||
|
Loading…
x
Reference in New Issue
Block a user