Hi
Der Sourcecode macht ja nichts anderes als einzelne Values zu einem String zusammen zu backen.
Wenn jetzt in der BB 1.8.2 das // zu viel ist, dann brauchst Du das doch eigentlich nur aus dem Source zu nehmen.
Die Zeile zerhackt würde dann so aussehen:
Code: Alles auswählen
if (fileSystemIsSupported("cifs"))
                  {
                     cmd = "mount -t cifs ";
                     cmd += ip + "/" + mp.mountDir + " " + mp.localDir + " -o user=";
                     cmd += (mp.userName) ? mp.userName : "anonymous";
                     cmd += (mp.password) ? (",password=" + mp.password) : "";
                     cmd += ",unc=//" + ip + "/" + mp.mountDir;
                     cmd += (mp.options) ? ("," + mp.options) : "";
                  }
Das müsste dann so aussehe:
mount -t cifs 192.168.1.1/Mp3-Stream /mnt/hdd/ -o ro,soft,user=geko37,password=xxx,unc=//192.168.1.1/Mp3-Stream
Und hier so wie in Deinem Post...
Code: Alles auswählen
if (fileSystemIsSupported("cifs"))
                  {
                     cmd = "mount -t cifs ";
                     cmd += "-o user=";
                     cmd += (mp.userName) ? mp.userName : "anonymous";
                     cmd += (mp.password) ? (",password=" + mp.password) : "";
                     cmd += ",unc=//" + ip + "/" + mp.mountDir;
                     cmd += (mp.options) ? ("," + mp.options) : " ";
                     cmd += ip + "/" + mp.mountDir + " " + mp.localDir;
                  }
mount -t cifs -o ro,soft,user=geko37,password=xxx,unc=//192.168.1.1/Mp3-Stream 192.168.1.1/Mp3-Stream /mnt/hdd/
Ob es jetzt user= oder username= heissen musst, sollte man noch probieren.
Gruß