summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-15 22:21:31 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-15 22:21:31 +0000
commit160f4b814cdb8a15b73f4cb91a0b98bca75ea2b0 (patch)
tree5e51efae5e6a58117112fe9acb22b346103b576d
parent391ca2b933c74a3301caec04de5acfe5746a1acf (diff)
downloaddrakx-net-160f4b814cdb8a15b73f4cb91a0b98bca75ea2b0.tar
drakx-net-160f4b814cdb8a15b73f4cb91a0b98bca75ea2b0.tar.gz
drakx-net-160f4b814cdb8a15b73f4cb91a0b98bca75ea2b0.tar.bz2
drakx-net-160f4b814cdb8a15b73f4cb91a0b98bca75ea2b0.tar.xz
drakx-net-160f4b814cdb8a15b73f4cb91a0b98bca75ea2b0.zip
write CELLULAR_CID in ifcfg file if needed
-rw-r--r--lib/network/connection/ppp.pm1
-rw-r--r--lib/network/network.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/connection/ppp.pm b/lib/network/connection/ppp.pm
index c84c2b1..6efdf81 100644
--- a/lib/network/connection/ppp.pm
+++ b/lib/network/connection/ppp.pm
@@ -65,6 +65,7 @@ sub build_ifcfg_settings {
PERSIST => "yes",
DEBUG => "yes",
DEFROUTE => "yes",
+ if_($self->{access}{cid}, CELLULAR_CID => $self->{access}{cid}),
});
$self->SUPER::build_ifcfg_settings($settings);
}
diff --git a/lib/network/network.pm b/lib/network/network.pm
index 324f77d..75ba03d 100644
--- a/lib/network/network.pm
+++ b/lib/network/network.pm
@@ -188,6 +188,7 @@ sub write_interface_settings {
qw(MRU REMIP PPPOPTIONS HARDFLOWCTL DEFABORT RETRYTIMEOUT PAPNAME LINESPEED MODEMPORT DEBUG ESCAPECHARS INITSTRING),
qw(DISCONNECTTIMEOUT PERSIST DEFROUTE),
qw(VPN_NAME VPN_TYPE),
+ qw(CELLULAR_CID),
if_($intf->{BOOTPROTO} eq "dhcp", qw(DHCP_CLIENT DHCP_HOSTNAME NEEDHOSTNAME PEERDNS PEERYP PEERNTPD DHCP_TIMEOUT)),
if_($intf->{DEVICE} =~ /^ippp\d+$/, qw(DIAL_ON_IFUP))
);