SVN: rc-scripts/trunk/sysconfig: interfaces/ifcfg-description network-scripts/ifup

2010-05-17 Thread arekm
Author: arekm
Date: Mon May 17 22:26:19 2010
New Revision: 11475

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
Wait for wpa_supplicant to actually connect to network before trying dhcp.

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Mon May 17 
22:26:19 2010
@@ -121,6 +121,7 @@
WLAN_RETRY=limit value|lifetime value
WLAN_COMMIT=yes|no (some cards require manual commit of changes)
if WLAN_WPA=yes; then
+   WLAN_WPA_WAIT_TIMEOUT=wait max x sec for wpa_suplicant
WLAN_WPA_DRIVER=driver: see -D option of 
wpa_supplicant; default is wext
WLAN_WPA_CONFIG=path to wpa_supplicant config file
WLAN_WPA_OPTIONS=[additional wpa_supplicant options]

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==
--- rc-scripts/trunk/sysconfig/network-scripts/ifup (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup Mon May 17 22:26:19 2010
@@ -123,7 +123,16 @@
 fi
 
 if is_yes ${WLAN_WPA}; then
+   [ -z $WLAN_WPA_WAIT_TIMEOUT ]  WLAN_WPA_WAIT_TIMEOUT=15
/usr/sbin/wpa_supplicant -D ${WLAN_WPA_DRIVER:-wext} -c 
${WLAN_WPA_CONFIG:-/etc/wpa_supplicant.conf} -i ${DEVICE} ${WLAN_WPA_OPTIONS} 
-P /var/run/wpa_supplicant-${DEVICE}.pid -B
+   i=0
+   while [ $i -lt $WLAN_WPA_WAIT_TIMEOUT ]; do
+   i=$((i + 1))
+   # check_link_down sleeps for 0.5s
+   check_link_down ${DEVICE} 2
+   status=$?
+   [ $status = 1 ]  break
+   done
 fi
 
 if [ $HANDLING = 2 ]; then
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig: interfaces/ifcfg-description network-scripts/ifup

2010-02-08 Thread qboosh
Author: qboosh
Date: Mon Feb  8 18:34:39 2010
New Revision: 11137

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
- WLAN_WPA_DRIVER should default to wext

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Mon Feb  8 
18:34:39 2010
@@ -121,7 +121,7 @@
WLAN_RETRY=limit value|lifetime value
WLAN_COMMIT=yes|no (some cards require manual commit of changes)
if WLAN_WPA=yes; then
-   WLAN_WPA_DRIVER=driver; see -D option of 
wpa_supplicant
+   WLAN_WPA_DRIVER=driver: see -D option of 
wpa_supplicant; default is wext
WLAN_WPA_CONFIG=path to wpa_supplicant config file
WLAN_WPA_OPTIONS=[additional wpa_supplicant options]
fi

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==
--- rc-scripts/trunk/sysconfig/network-scripts/ifup (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup Mon Feb  8 18:34:39 2010
@@ -123,7 +123,7 @@
 fi
 
 if is_yes ${WLAN_WPA}; then
-   /usr/sbin/wpa_supplicant -D ${WLAN_WPA_DRIVER} -c 
${WLAN_WPA_CONFIG:-/etc/wpa_supplicant.conf} -i ${DEVICE} ${WLAN_WPA_OPTIONS} 
-P /var/run/wpa_supplicant-${DEVICE}.pid -B
+   /usr/sbin/wpa_supplicant -D ${WLAN_WPA_DRIVER:-wext} -c 
${WLAN_WPA_CONFIG:-/etc/wpa_supplicant.conf} -i ${DEVICE} ${WLAN_WPA_OPTIONS} 
-P /var/run/wpa_supplicant-${DEVICE}.pid -B
 fi
 
 if [ $HANDLING = 2 ]; then
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2009-11-22 Thread glen
Author: glen
Date: Sun Nov 22 10:18:46 2009
New Revision: 10990

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- cleanup

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Sun Nov 22 
10:18:46 2009
@@ -1,5 +1,5 @@
 # $Id$
-#
+
 DEVICE=name
 
 [ BOOTPRIO=number ]
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2009-03-10 Thread baggins
Author: baggins
Date: Tue Mar 10 11:56:43 2009
New Revision: 10190

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- add IP_LABEL setting for ip addrlabel (see RFC 3484)
- added comment about uselessness of IP6_SRC_IF setting


Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Tue Mar 10 
11:56:43 2009
@@ -30,15 +30,17 @@
 IPADDR=(IPv4 or IPv6 address)/prefix
 IP_AOPTS=broadcast xxx etc (by default broadcast is autocalculated)
 IP_ROPTS=
+IP_LABEL=
 
 IPADDR1=
 IP_AOPTS1= options for ip addr add
 IP_ROPTS1= options for ip route add (currently used only for IP4_PRIM_IF)
+IP_LABEL1= IPv6 address label as per RFC 3484 (ip addrlabel ...)
 
 IP4_PRIM_IF=1# number of primary IPv4 interface (IPADDRx)
 IP4_SRC_IF=1 # number of IPv4 address for ip's ,,src'' parameter
 IP6_PRIM_IF= #
-IP6_SRC_IF=  #
+IP6_SRC_IF=  # useless, setting ignored by IPv6 kernel code
 
 [ ONBOOT={no|yes} ]
 [ HOTPLUG={no|yes} ] - bring up from hotplug (udev for example) (default to no)
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2009-03-10 Thread baggins
Author: baggins
Date: Tue Mar 10 12:02:18 2009
New Revision: 10191

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- just remove IP6_SRC_IF to avoid confusion


Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Tue Mar 10 
12:02:18 2009
@@ -40,7 +40,6 @@
 IP4_PRIM_IF=1# number of primary IPv4 interface (IPADDRx)
 IP4_SRC_IF=1 # number of IPv4 address for ip's ,,src'' parameter
 IP6_PRIM_IF= #
-IP6_SRC_IF=  # useless, setting ignored by IPv6 kernel code
 
 [ ONBOOT={no|yes} ]
 [ HOTPLUG={no|yes} ] - bring up from hotplug (udev for example) (default to no)
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2009-01-22 Thread arekm
Author: arekm
Date: Thu Jan 22 10:06:14 2009
New Revision: 10090

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
Mention GVRP option.

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Thu Jan 22 
10:06:14 2009
@@ -74,6 +74,8 @@
will be at least a small performance degradation.
Default is ON.
 
+[ VLAN_GVRP=yes|no ]Enable GVRP.
+
 [ DEFAULTHANDLING=yes|no ] (used in configuration for ATM interfaces,
obsolete variable)
 [ HANDLING=0|1|2|3 ] (0 is default; used ie. in ATM configuration, for
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig: interfaces/ifcfg-description interfaces/ifcfg-eth0.1 network-script...

2008-11-28 Thread arekm
Author: arekm
Date: Fri Nov 28 17:09:35 2008
New Revision: 10010

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-eth0.1
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
macvlan support.

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Fri Nov 28 
17:09:35 2008
@@ -84,6 +84,12 @@
[ MEDIA={auto|10baseT|10base2|AUI} ]
[ MACADDR=hw address ]
 
+   if macvlan
+   MACVLAN_DEV=exitsting base interface eg. eth0
+   MACVLAN_MACADDR=desired hw address of new interface
+   fi
+   
+
if  DEVICE=wireless interface (man iwconfig(8))
WLAN_UPEARLY=yes|no Up device before setting any WLAN 
parameters
(needed for some drivers)

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-eth0.1
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-eth0.1  (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-eth0.1  Fri Nov 28 17:09:35 2008
@@ -8,4 +8,3 @@
 IP4_PRIM_IF=1
 MUTLICAST=no
 ONBOOT=yes
-

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==
--- rc-scripts/trunk/sysconfig/network-scripts/ifup (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup Fri Nov 28 17:09:35 2008
@@ -75,6 +75,11 @@
fi
 fi
 
+if [ -n $MACVLAN_DEV -a -n $MACVLAN_MACADDR ]; then
+   ip link del link ${MACVLAN_DEV} ${DEVICE} type macvlan  /dev/null 21
+   ip link add link ${MACVLAN_DEV} address ${MACVLAN_MACADDR} ${DEVICE} 
type macvlan
+fi
+
 # is this device available? (this catches PCMCIA devices for us)
 if ! /sbin/ip link set multicast ${MULTICAST} dev ${DEVICE}  /dev/null 21; 
then
nls Delaying %s initialization ${DEVICE}
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2008-03-26 Thread paszczus
Author: paszczus
Date: Wed Mar 26 09:41:56 2008
New Revision: 9678

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- added SYNC option

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Wed Mar 26 
09:41:56 2008
@@ -133,6 +133,7 @@
PEERDNS=yes|no
DEFROUTE=yes|no
ESCAPECHARS=yes|no
+   SYNC=yes|no (yes implies sync option)
HOLDOFF=30
HARDFLOWCTL=yes|no (yes implies modem crtscts options)
PPPOPTIONS=arbitrary option string
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2008-03-22 Thread qboosh
Author: qboosh
Date: Sat Mar 22 13:14:25 2008
New Revision: 9649

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- typo

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Sat Mar 22 
13:14:25 2008
@@ -134,7 +134,7 @@
DEFROUTE=yes|no
ESCAPECHARS=yes|no
HOLDOFF=30
-   HARDFLOWCTL=yes|no (yes imples modem crtscts options)
+   HARDFLOWCTL=yes|no (yes implies modem crtscts options)
PPPOPTIONS=arbitrary option string
PAPNAME=name $PAPNAME on pppd command line
REMIP=remote ip4 address, normally unspecified
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2008-02-08 Thread glen
Author: glen
Date: Fri Feb  8 15:54:38 2008
New Revision: 9236

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- placeholder for WVDIALSECT

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Fri Feb  8 
15:54:38 2008
@@ -178,6 +178,7 @@
fi
UNIT=yes|no (pass unit option to pppd (depends on DEVICE name)
 defaults to yes)
+   WVDIALSECT= (section in wvdial config maybe)
fi
 
if  DEVICE=sl* ; then   (SLIP)
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2007-10-28 Thread glen
Author: glen
Date: Sun Oct 28 17:55:34 2007
New Revision: 8887

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- new WLAN options

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Sun Oct 28 
17:55:34 2007
@@ -79,10 +79,10 @@
 [ HANDLING=0|1|2|3 ] (0 is default; used ie. in ATM configuration, for
  details see ifup script)
 
-if DEVICE=eth* ; then
+if DEVICE=eth*; then
 
[ MEDIA={auto|10baseT|10base2|AUI} ]
-   [ MACADDR=hw addres ]
+   [ MACADDR=hw address ]
 
if  DEVICE=wireless interface (man iwconfig(8))
WLAN_UPEARLY=yes|no Up device before setting any WLAN 
parameters
@@ -99,6 +99,13 @@
WLAN_RTS_THRESHOLD=rts/cts threshold|auto|fixed|off
WLAN_FRAGMENTATION_THRESHOLD=frag threshold|auto|fixed|off
WLAN_KEY=---||s:ascii string
+   if WLAN_KEY; then
+   WLAN_KEY_1=... optional
+   WLAN_KEY_2=... optional
+   WLAN_KEY_3=... optional
+   WLAN_KEY_4=... optional
+   WLAN_KEY_CURRENT=index optional
+   fi
WLAN_ENCRYPTION=on|off|open|restricted
WLAN_POWER=period value|timeout 
value|on|off|all|unicast|multicast
WLAN_TXPOWER=power in dBm|power in mWmW|auto|on|off
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2007-10-28 Thread glen
Author: glen
Date: Sun Oct 28 18:58:31 2007
New Revision: 8893

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- $HOTPLUG is processed by udev (udev_net_helper)

Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Sun Oct 28 
18:58:31 2007
@@ -37,11 +37,11 @@
 
 IP4_PRIM_IF=1# number of primary IPv4 interface (IPADDRx)
 IP4_SRC_IF=1 # number of IPv4 address for ip's ,,src'' parameter
-IP6_PRIM_IF= # 
-IP6_SRC_IF=  # 
+IP6_PRIM_IF= #
+IP6_SRC_IF=  #
 
 [ ONBOOT={no|yes} ]
-[ HOTPLUG={no|yes} ] - bring up from hotplug (default to no)
+[ HOTPLUG={no|yes} ] - bring up from hotplug (udev for example) (default to no)
 [ MULTICAST={|no|yes} ]- for eth automatically set to yes
 [ ARP={no|yes} ]   - for eth automatically set to yes
 [ IPV6_DISABLE_AUTOCONF={yes|no} ] - disable IPv6 autoconfiguration
@@ -117,18 +117,18 @@
WLAN_WPA_OPTIONS=[additional wpa_supplicant options]
fi
fi
-   
+
 elif   DEVICE=ppp* || DEVICE=sl* ; then
-   
+
PERSIST=yes|no
MODEMPORT=device, say /dev/modem
LINESPEED=speed, say 115200
-   DEFABORT=yes|no 
+   DEFABORT=yes|no
 DIRECT_CONNECT=yes|no (direct connection without chat/wvdial used for 
example
   on SDI or leased lines)
-   
+
if  DEVICE=ppp* ; then
-   
+
AUTH=yes|no
PEERDNS=yes|no
DEFROUTE=yes|no
@@ -210,12 +210,12 @@
Note: see note above
fi
 elifDEVICE=irda* ; then /* IrDA */
-
+
 IRDAPORT=device, say /dev/ttyS1
 DONGLE=driver, see README.irattach from irda-utils package
 DISCOVERY=yes|no (starts discovery of remote IrDA devices)
 fi
-   
+
 # You can also run some other programs *after* device has been brought up or 
down.
 # Just create functions run_up() and run_down().
 run_up()
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit


SVN: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description

2006-10-31 Thread blues
Author: blues
Date: Wed Nov  1 01:35:07 2006
New Revision: 7926

Modified:
   rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
Log:
- more docs


Modified: rc-scripts/trunk/sysconfig/interfaces/ifcfg-description
==
--- rc-scripts/trunk/sysconfig/interfaces/ifcfg-description (original)
+++ rc-scripts/trunk/sysconfig/interfaces/ifcfg-description Wed Nov  1 
01:35:07 2006
@@ -126,6 +126,7 @@
PEERDNS=yes|no
DEFROUTE=yes|no
ESCAPECHARS=yes|no
+   HOLDOFF=30
HARDFLOWCTL=yes|no (yes imples modem crtscts options)
PPPOPTIONS=arbitrary option string
PAPNAME=name $PAPNAME on pppd command line
___
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit