summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/gprs/GPRS_NNI.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/gprs/GPRS_NNI.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp b/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp
index 2f61cba..bf8cc59 100644
--- a/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp
+++ b/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp
@@ -119,39 +119,39 @@ short AGPRSDevice::generateFile( SystemFile & SF,
SF << "SAY \"READY\\n\"" << oendl;
return 0;
} else if( SF.name() == "peers" ) {
SF << "noauth" << oendl;
SF << "user " << Data.User << oendl;
SF << "connect \"/usr/sbin/chat -s -v -f /etc/chatscripts/"
- << removeSpaces( connection()->name() )
+ << removeSpaces( networkSetup()->name() )
<< "\""
<< oendl;
SF << "ipcp-accept-local" << oendl;
SF << "ipcp-accept-remote" << oendl;
if( Data.DefaultGateway ) {
SF << "defaultroute" << oendl;
if( Data.SetIfSet ) {
SF << "replacedefaultroute" << oendl;
}
}
if( Data.Debug ) {
SF << "logfile /tmp/"
- << removeSpaces( connection()->name() )
+ << removeSpaces( networkSetup()->name() )
<< oendl;
for( int i = 0; i < Data.Debug; i ++ ) {
SF << "debug" << oendl;
}
}
SF << "nocrtscts" << oendl;
SF << "local" << oendl;
SF << "lcp-echo-interval 0" << oendl;
SF << "lcp-echo-failure 0" << oendl;
SF << "usepeerdns" << oendl;
- SF << "linkname " << removeSpaces( connection()->name() ) << oendl;
+ SF << "linkname " << removeSpaces( networkSetup()->name() ) << oendl;
SF << "nopersist" << oendl;
- SF << "ipparam " << removeSpaces( connection()->name() ) <<oendl;
+ SF << "ipparam " << removeSpaces( networkSetup()->name() ) <<oendl;
SF << "maxfail 1" << oendl;
return 0;
} else if( SF.name() == "extra" ) {
unsigned long Bits;
// generate 'fixed' settings
for( unsigned int i = 0 ;
@@ -189,43 +189,43 @@ short AGPRSDevice::generateFile( SystemFile & SF,
}
if( ! Data.DNS1.isEmpty() ) {
SF << "nameserver "
<< Data.DNS1
<< " # profile "
- << removeSpaces( connection()->name() )
+ << removeSpaces( networkSetup()->name() )
<<oendl;
}
if( ! Data.DNS2.isEmpty() ) {
SF << "nameserver "
<< Data.DNS2
<< " # profile "
- << removeSpaces( connection()->name() )
+ << removeSpaces( networkSetup()->name() )
<<oendl;
}
}
return 1;
}
bool AGPRSDevice::openFile( SystemFile & SF ) {
if( SF.name() == "peers" ) {
SF.setPath(
QString( "/etc/ppp/peers/" ) +
- removeSpaces( connection()->name() )
+ removeSpaces( networkSetup()->name() )
);
return 1;
} else if ( SF.name() == "chatscripts" ) {
SF.setPath(
QString( "/etc/chatscripts/" ) +
- removeSpaces( connection()->name() )
+ removeSpaces( networkSetup()->name() )
);
return 1;
} else if ( SF.name() == "extra" ) {
SF.setPath(
QString( "/etc/ppp/" ) +
- removeSpaces( connection()->name() ) + ".fixed"
+ removeSpaces( networkSetup()->name() ) + ".fixed"
);
return 1;
}
return 0;
}