diff options
author | damien <damien@mandriva.com> | 2003-07-05 17:38:27 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2003-07-05 17:38:27 +0000 |
commit | 392ecc12d323eae88def56281938b3ca13009de1 (patch) | |
tree | c8d1f529836ac93d5c87756bb615dae56352d185 /perl-install/network | |
parent | 04fada870a56165bd6a10f50f5bd427123c24d52 (diff) | |
download | drakx-392ecc12d323eae88def56281938b3ca13009de1.tar drakx-392ecc12d323eae88def56281938b3ca13009de1.tar.gz drakx-392ecc12d323eae88def56281938b3ca13009de1.tar.bz2 drakx-392ecc12d323eae88def56281938b3ca13009de1.tar.xz drakx-392ecc12d323eae88def56281938b3ca13009de1.zip |
isdn : virtual interface ippp0 is started at boot.
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/isdn.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/network/isdn.pm b/perl-install/network/isdn.pm index fccba6df5..1a3f0e5fb 100644 --- a/perl-install/network/isdn.pm +++ b/perl-install/network/isdn.pm @@ -84,16 +84,19 @@ defaultroute substInFile { s/^FIRMWARE.*\n//; $_ .= qq(FIRMWARE="$isdn->{firmware}"\n) if eof } "$prefix/etc/sysconfig/network-scripts/ifcfg-ippp0"; + # we start the virtual interface at boot (we dial only on demand. + substInFile { s/^ONBOOT.*\n//; $_ .= qq(ONBOOT=yes\n) if eof } "$prefix/etc/sysconfig/network-scripts/ifcfg-ippp0"; + write_secret_backend($isdn->{login}, $isdn->{passwd}); write_cnx_script($netc, "isdn", -"/sbin/route del default -/sbin/ifup ippp0 +"#/sbin/route del default +#/sbin/ifup ippp0 /usr/sbin/isdnctrl dial ippp0 " . if_($isdn->{speed} =~ /128/, "service ibod restart "), "/usr/sbin/isdnctrl hangup ippp0 -/sbin/ifdown ippp0 +#/sbin/ifdown ippp0 " . if_($isdn->{speed} =~ /128/, "service ibod stop "), $netc->{isdntype}); 1; |