Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48012 - hotplug problem with debug_msg
Summary: hotplug problem with debug_msg
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 01:16 UTC by Aben Siatris
Modified: 2005-08-16 11:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aben Siatris 2004-04-16 01:16:07 UTC
*  sys-apps/hotplug
      Latest version available: 20040401
      Latest version installed: 20040401
*  sys-apps/hotplug-base
      Latest version available: 20040401
      Latest version installed: 20040401

in /etc/hotplug/hotplug.function is bug
"-t" allows not parameter "1"
after this, hotplug cannot logging into /var/log/messages in my
gentoo box
#
# for diagnostics
#
if [ -t 1 -o -z "$LOGGER" ]; then
    mesg () {
        echo "$@"
    }

and in /etc/hotplug/net.agent cannot write debug messages
            # Gentoo
            elif [ -f /etc/gentoo-release ]; then
                script=/etc/init.d/net.$INTERFACE
                if [ -x "$script" ]; then
                    debug_mesg invoke "$script" --quiet start
                    exec "$script" --quiet start
                fi
            else
                mesg "how do I bring interfaces up on this distro?"
            fi
            ;;

must be written as:
debug_mesg "invoke \"$script\" --quiet start"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-20 15:46:52 UTC
Ok, I've fixed the second issue.

How should the first one be fixed?
Comment 2 Aben Siatris 2004-09-21 08:45:27 UTC
#
# for diagnostics
#
if [ -t -o -z "$LOGGER" ]; then
    mesg () {
        echo "$@"
    }
else
    mesg () {
        $LOGGER -t $(basename $0)"[$$]" "$@"
    }
fi
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-09-23 11:27:05 UTC
Thanks, this is now fixed upstream and will show up in the release later today.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-16 11:52:59 UTC
Closed.