Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69035 - net.lo script from >=sys-apps/baselayout-1.11.3 breaks ISDN with isdn4linux
Summary: net.lo script from >=sys-apps/baselayout-1.11.3 breaks ISDN with isdn4linux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2004-10-26 09:27 UTC by Martin Wegner
Modified: 2004-11-10 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ipppd module for net-scripts (ipppd,1.84 KB, text/plain)
2004-11-04 07:06 UTC, Roy Marples (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Wegner 2004-10-26 09:27:40 UTC
After the upgrade to sys-apps/baselayout-1.11.3 the net.lo script breaks ISDN usability due to two issues:

1. The new net.lo script must depend on isdn4linux otherwise isdn4linux will be started _after_ net.ippp0 (which is net.lo, of course) and therefore net.lo does not find /dev/ippp0

2. If an ippp* interface is started the ipppd is not started but it is required to be able to connect to the internet.

Here the config for ippp0:

--- /etc/conf.d/net ---
[...]
ifconfig_ippp0=(
    "192.169.0.1 netmask 255.255.255.0"
)

routes_ippp0=(
    "default gw 192.169.0.1"
)
---

Reproducible: Always
Steps to Reproduce:
1. emerge =sys-apps/baselayout-1.11.3
2. etc-update
3. [Update net-symlinks and net-config]
4. reboot
5. isdnctrl dial ippp0

Actual Results:  
Getting the messages:

1. at boot in net.ippp0: * ippp0 does not exist
2. ippp0: Resource temporarily unavailable

and therefore ISDN and connecting to the internet does not work.

Expected Results:  
ISDN should also be covered by the new net scripts since it is still used by
some more people.

# emerge info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20041006-r0,
2.6.8-ck8 i686)
=================================================================
System uname: 2.6.8-ck8 i686 AMD Duron(tm)
Gentoo Base System version 1.6.3
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.19,sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs candy ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib acl acpi acpi4linux alsa apache2 apm avi berkdb
bitmap-fonts blender-game bonobo bootsplash bzlib cdparanoia cdr clanVoice crypt
cups dba dedicated dga divx4linux doc dvd encode escreen f77 fbcon foomaticdb
freetype gd gdbm gif gnome gpm gtk gtk2 imagemagick imlib java jpeg libg++
libwww mad mailwrapper mbox mikmod mmx mmx2 motif mpeg mysql ncurses net nls
oggvorbis opengl oss pam pdflib perl png python quicktime radeon readline rtc
ruby samba sdl session shared silverxp slang sockets spell spl sse ssl
stencil-buffer svga tcltk tcpd tetex tokenizer truetype usb videos wxwindows x86
xchattext xfs xml xml2 xmms xpm xprint xsl xv zlib"
Comment 1 Martin Wegner 2004-10-26 13:40:16 UTC
Same with 1.11.4
Comment 2 Roy Marples (RETIRED) gentoo-dev 2004-11-02 09:28:43 UTC
This should be fixed in baselayout-1.11.5
Comment 3 SpanKY gentoo-dev 2004-11-02 15:53:51 UTC
re-open if it doesnt !
Comment 4 Martin Wegner 2004-11-03 04:58:17 UTC
Unfortunately I have to tell you, that it is NOT fixed:

If you read my initial comment carefully, you will get to know that for a successful connection try an ippp* interface needs /sbin/ipppd from the isdn4k-utils package to be started. This was done by the old net script. So I guess it should also be done by the new script now.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2004-11-04 07:06:48 UTC
Created attachment 43284 [details]
ipppd module for net-scripts

OK - I've been confused here. My fault - I don't use isdn and didn't realise
that isdn4k-utils comes with it's own net.ippp0 script which uses our old net
config

Anyway, I've attached an ipppd module for you to test - it needs to go in
/lib/rcscripts/net.modules.d

Then simply just your /etc/conf.d/net to instruct ippp0 to use the isdn module

ifconfig_ippp0=( "isdn" "192.169.0.1 netmask 255.255.255.0" )
ipppd_ippp0="defaultroute"

Could you test it and get back please?
Comment 6 Roy Marples (RETIRED) gentoo-dev 2004-11-04 07:16:54 UTC
The module has to be called ipppd

Sorry for missing that bit out :/
Comment 7 Martin Wegner 2004-11-04 10:18:13 UTC
The module works great for me. I'm currently online with this script without the need to start anything manually ;)

I didn't know that isdn4k-utils has its own net.ippp0 script. I just deleted all net.* scripts and linked all interface scripts to net.lo .

One question:

Why can't I load the ipppd module like this:

modules_ippp0=(
    "isdn"
)

According to net.example this is the default way, isn't it?
Comment 8 Roy Marples (RETIRED) gentoo-dev 2004-11-04 14:52:24 UTC
The modules=( ... ) line simply loads the modules - it specifies that they *must* be loaded - but it's upto each module how they actually start.
By default, if the required package is installed then it loads. In this case, if you have isdn4k-utils installed, then the ipppd (isdn) module gets loaded.

If it's specified, but not installed then you get an error saying "Please install isdn4kutils"

I've changed the default behaviour to start automatically if the interface name starts ippp or isdn followed by a number - otherwise the interface won't start. Thanks for the idea though - I've changed bridge and tuntap modules to work in a similar way.

This is now in CVS, and will be in baselayout-1.11.6
Comment 9 Martin Wegner 2004-11-10 13:25:16 UTC
Just upgraded to baselayout-1.11.6-r1. Works fine for me. Closing bug.