{
install -d -m755 /etc/sysconfig/network/ssid
- #install -d -m755 /etc/sysconfig/network-devices/ifconfig.ath0 &&
- #cat > /etc/sysconfig/network-devices/ifconfig.ath0/01-wireless << "EOF"
-#ONBOOT=yes
-#SERVICE=wireless
-#ESSID=scan
-#TYPE=wep
-#EOF
+cat > /etc/sysconfig/network/ssid/TEMPLATE << EOF
+# This file must be named exactly as your ESSID (case is important)
+SSID="MYNETWORK-SSID"
+KEY_TYPE="WPA-PSK"
-#cat > /etc/sysconfig/network/ssid/[ssid] << "EOF"
-#MODE=Managed
-#KEY1=""
-#KEY2=""
-#KEY3=""
-#KEY4=""
-#EOF
+# This can be "static" or "dhcp"
+BOOTPROTO="static"
- install -v -m740 ${SCRDIR}/misc/wireless /etc/rc.d/init.d
+# The following variables are used only for "static":
+IPADDR="192.168.1.6"
+PREFIX_LENGTH="24"
+GATEWAY="192.168.1.1"
+EOF
}