home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
rescue
/
etc
/
sysconfig
/
network
/
scripts
/
extradebug
< prev
next >
Wrap
Text File
|
2006-11-29
|
1KB
|
30 lines
# This is a debugging helper script. It collects all interesting info and bash
# debug output into files /tmp/exded.*. Just source it in all questionable
# scripts and add 'rm -f /tmp/exded.*' in the start section of /etc/init.d
# boot.udev to start cleanly when booting.
SCRIPT=${0##*/}
exec 2> /tmp/exdeb.${SCRIPT}_$$.$PPID.${SEQNUM}_$1.$2
date +"%F %T.%N" >&2
echo -------------------------------------------------- >&2
ps axwfu | head -1 >&2
#ps axwfu | grep -v "grep\|sed" | grep -C3 "$$\|ifplugd\|dhcp\|ifup\|ifdown\|ifstatus" |
ps axwfu | grep -C3 "$$\|ifplugd\|dhcp\|ifup\|ifdown\|ifstatus" |
sed "s/ $$ /#$$#/" >&2
echo -------------------------------------------------- >&2
ls -ltr --full-time /sys/class/net /dev/shm/sysconfig >&2
echo >&2
grep -H "" /dev/shm/sysconfig/* >&2
echo -------------------------------------------------- >&2
ip a >&2
ip r >&2
echo >&2
iwconfig >&2
echo >&2
ifplugstatus >&2
echo >&2
echo "##################################################" >&2
echo "##################################################" >&2
echo >&2
set -vx