Subversion Repositories livecd

Rev

Rev 102 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 102 Rev 114
Line 117... Line 117...
117
      fi
117
      fi
118
    done
118
    done
119
fi
119
fi
120
 
120
 
121
 
121
 
-
 
122
### configure iwl4965 Intel WLAN Chip
-
 
123
lspci | grep -q Wireless.*4965
-
 
124
if [ "$?" = "0" ]; then
-
 
125
    find /lib/modules/ 2>&1 | grep -q iwl4965.ko
-
 
126
    if [ "$?" = "0" ]; then
-
 
127
	grep -q iwl4965 /etc/modprobe.conf
-
 
128
	if [ "$?" != "0" ]; then
-
 
129
	    echo "alias wlan0 iwl4965" >> /etc/modprobe.conf
-
 
130
	fi
-
 
131
	if [ ! -e /etc/sysconfig/network-scripts/ifcfg-wlan0 ]; then
-
 
132
	    cat > /etc/sysconfig/network-scripts/ifcfg-wlan0 <<EOF
-
 
133
TYPE=Wireless
-
 
134
DEVICE=wlan0
-
 
135
BOOTPROTO=dhcp
-
 
136
NETMASK=
-
 
137
DHCP_HOSTNAME=
-
 
138
IPADDR=
-
 
139
DOMAIN=
-
 
140
ONBOOT=no
-
 
141
USERCTL=no
-
 
142
IPV6INIT=no
-
 
143
PEERDNS=yes
-
 
144
ESSID=
-
 
145
CHANNEL=6
-
 
146
MODE=Managed
-
 
147
RATE=Auto
-
 
148
EOF
-
 
149
	    ln /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/networking/devices/ifcfg-wlan0
-
 
150
	    ln /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/networking/profiles/default/ifcfg-wlan0 
-
 
151
	fi
-
 
152
    fi
-
 
153
fi
-
 
154
 
-
 
155
 
122
### do not start WLAN devices on boot
156
### do not start WLAN devices on boot
123
if [ ! $WLAN ]; then
157
if [ ! $WLAN ]; then
124
    # find all network devices (exclude loopback device)
158
    # find all network devices (exclude loopback device)
125
    config_files=$( find /etc/sysconfig -name ifcfg-* 2>/dev/null | grep -v ifcfg-lo )
159
    config_files=$( find /etc/sysconfig -name ifcfg-* 2>/dev/null | grep -v ifcfg-lo )
126
    for file in $config_files; do
160
    for file in $config_files; do