Maemo: Determine host address from device automatically.

Reviewed-by: kh1
This commit is contained in:
ck
2010-08-02 11:11:37 +02:00
parent 3aa3c5688f
commit 29c304bdf5
6 changed files with 1 additions and 53 deletions

View File

@@ -288,9 +288,8 @@ void MaemoSshRunner::mount()
const QString chmod = QString::fromLocal8Bit("%1 chmod a+r+w+x %2")
.arg(MaemoGlobal::remoteSudo(), mountSpec.remoteMountPoint);
const QString utfsClient
= QString::fromLocal8Bit("%1 -l %2 -r %2 -c %3:%2 %4")
= QString::fromLocal8Bit("%1 -l %2 -r %2 -c `echo $SSH_CLIENT|cut -d ' ' -f 1`:%2 %4")
.arg(utfsClientOnDevice()).arg(port)
.arg(m_runConfig->localHostAddressFromDevice())
.arg(mountSpec.remoteMountPoint);
remoteCall += andOp + mkdir + andOp + chmod + andOp + utfsClient;
}