Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126916 - baselayout-1.12_0_pre6-r3 thinks net.ppp0 started ok if the serial device file does not exist
Summary: baselayout-1.12_0_pre6-r3 thinks net.ppp0 started ok if the serial device fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 02:27 UTC by Petteri Räty (RETIRED)
Modified: 2006-04-08 02:11 UTC (History)
0 users

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


Attachments
test if link exists (pppd-link.pach,416 bytes, patch)
2006-03-25 13:49 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2006-03-20 02:27:18 UTC
flybook betelgeuse # /etc/init.d/net.ppp0 restart
 * Bringing ppp0 down ...
 * Interface seems to be down already                                                                                                                                                                  [ ok ]
FATAL: Module ppp_generic not found.
 * Bringing ppp0 up ...
/usr/sbin/pppd: unrecognized option '/dev/ttyS1'
pppd version 2.4.2
Usage: /usr/sbin/pppd [ options ], where options are:
        <device>        Communicate over the named device
        <speed>         Set the baud rate to <speed>
        <loc>:<rem>     Set the local and/or remote interface IP
                        addresses.  Either one may be omitted.
        asyncmap <n>    Set the desired async map to hex <n>
        auth            Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
        crtscts         Use hardware RTS/CTS flow control
        defaultroute    Add default route through interface
        file <f>        Take options from file <f>
        modem           Use modem control lines
        mru <n>         Set MRU value to <n> for negotiation
See pppd(8) for more options.                                                                                                                                                                          [ ok ]

I am in the process of setting a GPRS connection over bluetooth and my settings are still incomplete. Stuff from /etc/conf.d/net 

depend_ppp0() {
    need bluetooth
}

config_ppp0=( "ppp" )
link_ppp0="/dev/rfcomm0"
phone_number_ppp0=( "*99#" )

Expected results:
/etc/init.d/net.ppp0 start should fail in this situation where the connection is not actually started.

flybook betelgeuse # emerge --info
Portage 2.1_pre6-r4 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -mpreferred-stack-boundary=2 -falign-functions=0 -falign-jumps=0 -falign-loops=0"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distcc distlocks noinfo sandbox sfperms strict"
GENTOO_MIRRORS=" ftp://192.168.150.1/ http://trumpetti.atm.tut.fi/gentoo http://lame.lut.fi/linux/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.150.1/portage/"
USE="x86 X acpi alsa avi berkdb bitmap-fonts bluetooth bzip2 bzlib crypt divx4linux dri eds emboss esd firefox foomaticdb gif gpm gstreamer gtk2 ieee1394 imap jpeg kde kdeenablefinal libg++ libwww mad mmx mozilla mp3 mpeg ncurses network nptl nsplugin ogg oggvorbis opengl pam pcmcia pdflib png pnp quicktime radeon readline real rtc spell ssl symlink tcpd truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis wifi xml xml2 xmms xv xvid zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard input_devices_penmount kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-03-20 03:14:02 UTC
It seems my net.ppp0 wasn't a symlink to net.lo as I thought it was. Output with the symlink:

flybook betelgeuse # /etc/init.d/net.ppp0 restart
 * Stopping ppp0
 *   Bringing down ppp0                                                                                                                                                                                [ ok ]
 * Starting ppp0
 *   Bringing up ppp0
 *     ppp
 *       Running pppd ...
/usr/sbin/pppd: unrecognized option '/dev/rfcomm0'
pppd version 2.4.2
Usage: /usr/sbin/pppd [ options ], where options are:
        <device>        Communicate over the named device
        <speed>         Set the baud rate to <speed>
        <loc>:<rem>     Set the local and/or remote interface IP
                        addresses.  Either one may be omitted.
        asyncmap <n>    Set the desired async map to hex <n>
        auth            Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
        crtscts         Use hardware RTS/CTS flow control
        defaultroute    Add default route through interface
        file <f>        Take options from file <f>
        modem           Use modem control lines
        mru <n>         Set MRU value to <n> for negotiation
See pppd(8) for more options.         
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2006-03-20 04:42:23 UTC
/usr/sbin/pppd: unrecognized option '/dev/rfcomm0'

/dev/rfcomm0 is created dynamically so sometimes it does not exist because the bluetooth connection has failed. For this reason I think baselayout should check if the  device given in link_ppp0="/dev/rfcomm0" actually exists.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-03-21 04:14:23 UTC
Can you confirm that it works if /dev/rfcomm0 exists?
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-03-24 14:00:03 UTC
(In reply to comment #3)
> Can you confirm that it works if /dev/rfcomm0 exists?
> 

it does
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-03-25 13:49:57 UTC
Created attachment 83111 [details, diff]
test if link exists

Please test and report back
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-04-08 02:11:45 UTC
Fixed in pre17