1 --- pcmcia-cs/etc/network.old 2004-07-01 00:31:59.000000000 +0100
2 +++ pcmcia-cs/etc/network 2004-07-01 00:32:57.000000000 +0100
5 RESOLV=/etc/resolv.conf
7 +# if this interface has an entry in /etc/network/interfaces, let ifupdown
9 +if grep -q "iface \+$DEVICE" /etc/network/interfaces; then
26 +## see if it is a wireless card. Jamey and AntiProxy
27 +CHECK_WIRELESS=`grep "$DEVICE" /proc/net/wireless`
28 +if [ -n "$CHECK_WIRELESS" ] ; then
29 # Now, run the specific script for Wireless LAN interfaces
30 # Note : we need the wireless parameters to be set up before IP parameters,
31 # so that we can perform DHCP over the Wireless link if needed. Jean II
33 -if [ -x ./wireless ] ; then
36 - . /etc/pcmcia/wireless
37 + O_INFO=$INFO ; INFO=
38 + if [ -x ./wireless ] ; then
41 + . /etc/pcmcia/wireless
51 /sbin/dhcpcd -XYZZY 2>&1 | grep -q DHCP || \
52 rm -f /var/run/dhcpcd-$DEVICE.pid
53 + # modified for udhcpc
54 + elif [ -x /sbin/udhcpc ] ; then
55 + PID=`cat /var/run/udhcpc.$DEVICE.pid 2>/dev/null`
56 + if [ -n "$PID" ] ; then kill -TERM $PID ; fi
57 + # end of modification
58 elif [ -x /sbin/dhclient ] ; then
59 PID=`cat /var/run/dhclient.pid 2>/dev/null`
60 if [ -n "$PID" ] ; then kill -TERM $PID ; fi
62 [ -n "$IPADDR" ] && /sbin/ifconfig $DEVICE down up
66 + #logger RESUME EVENT PCMCIA SEEN FROM CARDMGR
67 + if [ -z "$IPADDR" ] || is_true $DHCP ; then
68 + if [ ! -x /sbin/dhcpcd ] && [ -x /sbin/udhcpc ] ; then
69 + PID=`cat /var/run/udhcpc.$DEVICE.pid 2>/dev/null`
70 + if [ -n "$PID" ] ; then
78 + #logger SUSPEND EVENT SEEN FROM CARDMGR
79 +# ## uncomment this code below if you get problems where
80 +# ## you are getting in IP conflict upon resume on DHCP networks
81 +# if [ -z "$IPADDR" ] || is_true $DHCP ; then
82 +# if [ ! -x /sbin/dhcpcd ] && [ -x /sbin/udhcpc ] ; then
83 +# PID=`cat /var/run/udhcpc.$DEVICE.pid 2>/dev/null`
84 +# if [ -n "$PID" ] ; then
85 +# ifconfig $DEVICE 0.0.0.0